PoolingAsyncValueTaskMethodBuilder<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

要与生成器关联的状态机实例。

适用于