SecurityContext.Run(SecurityContext, ContextCallback, Object) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 스레드의 지정된 보안 컨텍스트에서 지정된 메서드를 실행합니다.
public:
static void Run(System::Security::SecurityContext ^ securityContext, System::Threading::ContextCallback ^ callback, System::Object ^ state);
public static void Run(System.Security.SecurityContext securityContext, System.Threading.ContextCallback callback, object state);
[System.Security.SecurityCritical]
public static void Run(System.Security.SecurityContext securityContext, System.Threading.ContextCallback callback, object state);
static member Run : System.Security.SecurityContext * System.Threading.ContextCallback * obj -> unit
[<System.Security.SecurityCritical>]
static member Run : System.Security.SecurityContext * System.Threading.ContextCallback * obj -> unit
Public Shared Sub Run (securityContext As SecurityContext, callback As ContextCallback, state As Object)
매개 변수
- securityContext
- SecurityContext
설정할 보안 컨텍스트입니다.
- callback
- ContextCallback
지정된 보안 컨텍스트에서 실행할 메서드를 나타내는 대리자입니다.
- state
- Object
콜백 메서드에 전달할 개체입니다.
- 특성
예외
securityContext은 null입니다.
-또는-
securityContext 캡처 작업을 통해 획득되지 않았습니다.
-또는-
securityContext 메서드 호출에 대한 인수 Run(SecurityContext, ContextCallback, Object) 로 이미 사용되었습니다.
.NET 5 이상(.NET Core 포함): 모든 경우에.
설명
메서드 호출이 완료되면 현재 스레드의 보안 컨텍스트가 이전 상태로 반환됩니다.