AsyncVoidMethodBuilder.SetStateMachine(IAsyncStateMachine) 方法

定義

將建構者與指定的狀態機關聯起來。

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)

參數

stateMachine
IAsyncStateMachine

狀態機實例,與建構者關聯。

例外狀況

stateMachinenull

狀態機事先設定好。

適用於