SecurityContext.Capture Method ()

 

Captures the security context for the current thread.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public static SecurityContext Capture()

Return Value

Type: System.Security.SecurityContext

The security context for the current thread.

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

.NET Framework
Available since 2.0
Return to top
Show: