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

작성기와 연결할 상태 시스템 인스턴스입니다.

예외

stateMachine이(가) null인 경우

상태 시스템이 이전에 설정된 경우

적용 대상