ExecutionContext.SuppressFlow 메서드

정의

여러 비동기 스레드 사이의 실행 컨텍스트 흐름을 억제합니다.

public:
 static System::Threading::AsyncFlowControl SuppressFlow();
public static System.Threading.AsyncFlowControl SuppressFlow ();
[System.Security.SecurityCritical]
public static System.Threading.AsyncFlowControl SuppressFlow ();
static member SuppressFlow : unit -> System.Threading.AsyncFlowControl
[<System.Security.SecurityCritical>]
static member SuppressFlow : unit -> System.Threading.AsyncFlowControl
Public Shared Function SuppressFlow () As AsyncFlowControl

반환

AsyncFlowControl

흐름을 복원하기 위한 AsyncFlowControl 구조체입니다.

특성

예외

컨텍스트 흐름이 이미 억제되어 있는 경우

설명

이 메서드를 사용하여 현재 스레드의 흐름을 표시하지 ExecutionContext 않습니다.

반환 AsyncFlowControl 된 구조에서 Undo 메서드를 사용하여 .의 ExecutionContext흐름을 복원해야 합니다.

이 메서드는 for SecurityPermissionFlag.Infrastructure 권한으로 SecurityAction.LinkDemand 보호됩니다. 완전히 신뢰할 수 있는 구성 요소는 비동기 호출 중에 흐름을 ExecutionContext 표시하지 않는 이 메서드를 호출할 수 있습니다. 흐름이 표시되지 않는 동안 메서드는 .를 Capture 반환합니다 null.

적용 대상

추가 정보