AsyncVoidMethodBuilder.SetStateMachine(IAsyncStateMachine) Método

Definição

Associa o construtor à máquina de estados especificada.

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)

Parâmetros

stateMachine
IAsyncStateMachine

A instância da máquina de estados para associar ao construtor.

Exceções

stateMachine é null.

A máquina de estados estava previamente configurada.

Aplica-se a