AsyncValueTaskMethodBuilder.SetStateMachine(IAsyncStateMachine) 方法       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将生成器与指定的状态机相关联。
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
 
要与生成器关联的状态机实例。