ExecutionContext.Run(ExecutionContext, ContextCallback, Object) 메서드

정의

현재 스레드의 지정된 실행 컨텍스트에서 메서드를 실행합니다.

public:
 static void Run(System::Threading::ExecutionContext ^ executionContext, System::Threading::ContextCallback ^ callback, System::Object ^ state);
[System.Security.SecurityCritical]
public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state);
public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object? state);
public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state);
[<System.Security.SecurityCritical>]
static member Run : System.Threading.ExecutionContext * System.Threading.ContextCallback * obj -> unit
static member Run : System.Threading.ExecutionContext * System.Threading.ContextCallback * obj -> unit
Public Shared Sub Run (executionContext As ExecutionContext, callback As ContextCallback, state As Object)

매개 변수

executionContext
ExecutionContext

설정할 집합입니다 ExecutionContext .

callback
ContextCallback

ContextCallback 제공된 실행 컨텍스트에서 실행할 메서드를 나타내는 대리자입니다.

state
Object

콜백 메서드에 전달할 개체입니다.

특성

예외

executionContextnull입니다.

-또는-

executionContext 캡처 작업을 통해 획득되지 않았습니다.

-또는-

executionContext 이미 호출에 대한 인수 Run(ExecutionContext, ContextCallback, Object) 로 사용되었습니다.

설명

메서드가 완료되면 호출 스레드의 실행 컨텍스트 및 동기화 컨텍스트가 이전 상태로 반환됩니다.

적용 대상