System.Security.SecurityContext.Capture Method

Captures the security context for the current thread.

Syntax

public static SecurityContext Capture ()

Returns

The security context for the current thread.

Remarks

The captured security context can be applied to another thread. The System.Security.SecurityContext consists of the System.Threading.CompressedStack and the System.Security.Principal.WindowsIdentity for the executing thread.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0