SecurityContext.CreateCopy 메서드

정의

현재 보안 컨텍스트의 복사본을 만듭니다.

public:
 System::Security::SecurityContext ^ CreateCopy();
public System.Security.SecurityContext CreateCopy();
member this.CreateCopy : unit -> System.Security.SecurityContext
Public Function CreateCopy () As SecurityContext

반품

현재 스레드의 보안 컨텍스트입니다.

예외

현재 보안 컨텍스트는 이전에 사용되었거나, 애플리케이션 도메인 간에 마샬링되었거나, 메서드를 Capture() 통해 획득되지 않았습니다.

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

설명

현재 컨텍스트는 캡처 또는 복사 작업을 통해 획득되어야 합니다. 이 메서드는 캡처된 SecurityContext 스레드를 여러 스레드에 적용하는 데 유용합니다.

적용 대상