AsyncTaskMethodBuilder<TResult>.Start<TStateMachine> Metodo

Definizione

Inizia l'esecuzione del generatore con la macchina a stati associata.

public:
generic <typename TStateMachine>
 where TStateMachine : System::Runtime::CompilerServices::IAsyncStateMachine void Start(TStateMachine % stateMachine);
public void Start<TStateMachine> (ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine;
member this.Start : 'StateMachine -> unit (requires 'StateMachine :> System.Runtime.CompilerServices.IAsyncStateMachine)
Public Sub Start(Of TStateMachine As IAsyncStateMachine) (ByRef stateMachine As TStateMachine)

Parametri di tipo

TStateMachine

Tipo della macchina di stati.

Parametri

stateMachine
TStateMachine

Istanza della macchina a stati passata per riferimento.

Eccezioni

stateMachine è null.

Si applica a