Share via


SecurityContext.SuppressFlowWindowsIdentity 메서드

정의

여러 비동기 스레드 사이에서 현재 보안 컨텍스트의 Windows ID 부분의 흐름을 억제합니다.

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

반환

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

특성

예외

.NET 5 이상(.NET Core 포함): 모든 경우에.

설명

이 메서드를 사용하여 가 비동기 스레드 간에 마이그레이션할 SecurityContext 때 Windows ID의 흐름을 표시하지 않습니다.

반환된 Undo 구조체에서 메서드를 사용하여 개체를 SecurityContext 이전 상태로 반환 AsyncFlowControl 합니다.

참고

CLR(공용 언어 런타임)은 비관리 코드에 대한 플랫폼 호출이나 Win32 함수에 대한 직접 호출과 같이 관리 코드 외부에서 수행되는 가장 작업이 아니라 관리 코드만 사용하여 수행되는 가장 작업을 인식합니다. 요소가 (<alwaysFlowImpersonationPolicy enabled="true"/>)로 설정 true 되지 않은 한 alwaysFlowImpersonationPolicy 관리 WindowsIdentity 되는 개체만 비동기 지점에서 흐를 수 있습니다. alwaysFlowImpersonationPolicy 요소를 로 true 설정하면 가장 수행 방법에 관계없이 Windows ID가 항상 비동기 지점 간에 흐르도록 지정합니다. 비동기 지점에서 관리되지 않는 가장을 이동하는 방법에 대한 자세한 내용은 alwaysFlowImpersonationPolicy> 요소를 참조<하세요.

적용 대상