AsyncVoidMethodBuilder.SetStateMachine(IAsyncStateMachine) Méthode

Définition

Associe le générateur à l’ordinateur d’état spécifié.

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)

Paramètres

stateMachine
IAsyncStateMachine

Instance de l’ordinateur d’état à associer au générateur.

Exceptions

stateMachine a la valeur null.

L’ordinateur d’état a été défini précédemment.

S’applique à