AsyncTaskMethodBuilder.SetStateMachine(IAsyncStateMachine) Metoda

Definicja

Kojarzy konstruktora z określoną maszyną stanu.

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)

Parametry

stateMachine
IAsyncStateMachine

Wystąpienie maszyny stanu do skojarzenia z konstruktorem.

Wyjątki

stateMachine to null.

Maszyna stanu została wcześniej ustawiona.

Dotyczy