Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft