SecurityContext.CreateCopy 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建当前安全上下文的副本。
public:
System::Security::SecurityContext ^ CreateCopy();
C#
public System.Security.SecurityContext CreateCopy();
member this.CreateCopy : unit -> System.Security.SecurityContext
Public Function CreateCopy () As SecurityContext
当前线程的安全上下文。
当前安全上下文以前已经使用过,在应用程序域间封送过或没有通过 Capture() 方法获得过。
.NET 5+ (包括 .NET Core) :在所有情况下。
当前上下文必须已通过捕获或复制操作获取。 此方法可用于将捕获 SecurityContext 的 应用于多个线程。
产品 | 版本 |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |