AsyncVoidMethodBuilder.SetStateMachine(IAsyncStateMachine) Methode

Definition

Ordnet den Generator dem angegebenen Zustandsautomaten zu.

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)

Parameter

stateMachine
IAsyncStateMachine

Die Zustandsautomatinstanz, die dem Generator zugeordnet werden soll.

Ausnahmen

stateMachine ist null.

Der Zustandsautomat wurde zuvor festgelegt.

Gilt für