AsyncVoidMethodBuilder.Start<TStateMachine>(TStateMachine) 方法

定义

开始使用关联的状态机运行生成器。

public:
generic <typename TStateMachine>
 where TStateMachine : System::Runtime::CompilerServices::IAsyncStateMachine void Start(TStateMachine % stateMachine);
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine;
member this.Start : 'StateMachine -> unit (requires 'StateMachine :> System.Runtime.CompilerServices.IAsyncStateMachine)
Public Sub Start(Of TStateMachine As IAsyncStateMachine) (ByRef stateMachine As TStateMachine)

类型参数

TStateMachine

状态机的类型。

参数

stateMachine
TStateMachine

状态机实例,由引用传递。

例外

stateMachinenull

适用于