共用方式為


AsyncValueTaskMethodBuilder<TResult>.SetStateMachine 方法

定義

將產生器與指定的狀態機器產生關聯。

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

要和產生器產生關聯的狀態機器執行個體。

適用於