Redigera

Dela via


AsyncVoidMethodBuilder.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

The state machine instance to associate with the builder.

Exceptions

stateMachine is null.

The state machine was previously set.

Applies to