AsyncTaskMethodBuilder.SetStateMachine(IAsyncStateMachine) AsyncTaskMethodBuilder.SetStateMachine(IAsyncStateMachine) AsyncTaskMethodBuilder.SetStateMachine(IAsyncStateMachine) AsyncTaskMethodBuilder.SetStateMachine(IAsyncStateMachine) Method

Definition

Associates the builder with the specified state machine.

public:
 void SetStateMachine(System::Runtime::CompilerServices::IAsyncStateMachine ^ stateMachine);
public void SetStateMachine (System.Runtime.CompilerServices.IAsyncStateMachine stateMachine);
member this.SetStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine -> unit
Public Sub SetStateMachine (stateMachine As IAsyncStateMachine)

Parameters

stateMachine
IAsyncStateMachine IAsyncStateMachine IAsyncStateMachine IAsyncStateMachine

The state machine instance to associate with the builder.

Exceptions

Applies to