mscorlib(4.0.0.0) API with additions
|
Encapsulates and propagates all security-related data for execution contexts transferred across threads. This class cannot be inherited. More...
Public Member Functions | |
void | Dispose () |
Releases all resources used by the current instance of the T:System.Security.SecurityContext class. More... | |
SecurityContext | CreateCopy () |
Creates a copy of the current security context. More... | |
Static Public Member Functions | |
static AsyncFlowControl | SuppressFlow () |
Suppresses the flow of the security context across asynchronous threads. More... | |
static AsyncFlowControl | SuppressFlowWindowsIdentity () |
Suppresses the flow of the Windows identity portion of the current security context across asynchronous threads. More... | |
static void | RestoreFlow () |
Restores the flow of the security context across asynchronous threads. More... | |
static bool | IsFlowSuppressed () |
Determines whether the flow of the security context has been suppressed. More... | |
static bool | IsWindowsIdentityFlowSuppressed () |
Determines whether the flow of the Windows identity portion of the current security context has been suppressed. More... | |
static void | Run (SecurityContext securityContext, ContextCallback callback, object state) |
Runs the specified method in the specified security context on the current thread. More... | |
static SecurityContext | Capture () |
Captures the security context for the current thread. More... | |
Encapsulates and propagates all security-related data for execution contexts transferred across threads. This class cannot be inherited.
Definition at line 12 of file SecurityContext.cs.
|
static |
Captures the security context for the current thread.
Definition at line 410 of file SecurityContext.cs.
SecurityContext System.Security.SecurityContext.CreateCopy | ( | ) |
Creates a copy of the current security context.
T:System.InvalidOperationException | The current security context has been previously used, was marshaled across application domains, or was not acquired through the M:System.Security.SecurityContext.Capture method. |
Definition at line 370 of file SecurityContext.cs.
void System.Security.SecurityContext.Dispose | ( | ) |
Releases all resources used by the current instance of the T:System.Security.SecurityContext class.
Implements System.IDisposable.
Definition at line 170 of file SecurityContext.cs.
|
static |
Determines whether the flow of the security context has been suppressed.
true
if the flow has been suppressed; otherwise, false
. Definition at line 227 of file SecurityContext.cs.
|
static |
Determines whether the flow of the Windows identity portion of the current security context has been suppressed.
true
if the flow has been suppressed; otherwise, false
. Definition at line 235 of file SecurityContext.cs.
|
static |
Restores the flow of the security context across asynchronous threads.
T:System.InvalidOperationException | The security context is null or an empty string. |
Definition at line 214 of file SecurityContext.cs.
|
static |
Runs the specified method in the specified security context on the current thread.
securityContext | The security context to set. |
callback | The delegate that represents the method to run in the specified security context. |
state | The object to pass to the callback method. |
T:System.InvalidOperationException | securityContext is null .-or- securityContext was not acquired through a capture operation. -or- securityContext has already been used as the argument to a M:System.Security.SecurityContext.Run(System.Security.SecurityContext,System.Threading.ContextCallback,System.Object) method call. |
Definition at line 260 of file SecurityContext.cs.
|
static |
Suppresses the flow of the security context across asynchronous threads.
Definition at line 181 of file SecurityContext.cs.
|
static |
Suppresses the flow of the Windows identity portion of the current security context across asynchronous threads.
Definition at line 189 of file SecurityContext.cs.