System.Security.SecurityContext.CreateCopy Method

Creates a copy of the current security context.

Syntax

public SecurityContext CreateCopy ()

Returns

The security context for the current thread.

Remarks

The current context must have been acquired through a capture or a copy operation. This method is useful for applying a captured System.Security.SecurityContext to multiple threads.

Requirements

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