mscorlib(4.0.0.0) API with additions
System.Threading.CompressedStack Class Reference

Provides methods for setting and capturing the compressed stack on the current thread. This class cannot be inherited. More...

Inheritance diagram for System.Threading.CompressedStack:
[legend]
Collaboration diagram for System.Threading.CompressedStack:
[legend]

Public Member Functions

void GetObjectData (SerializationInfo info, StreamingContext context)
 Sets the T:System.Runtime.Serialization.SerializationInfo object with the logical context information needed to recreate an instance of this execution context. More...
 
CompressedStack CreateCopy ()
 Creates a copy of the current compressed stack. More...
 

Static Public Member Functions

static CompressedStack GetCompressedStack ()
 Gets the compressed stack for the current thread. More...
 
static CompressedStack Capture ()
 Captures the compressed stack from the current thread. More...
 
static void Run (CompressedStack compressedStack, ContextCallback callback, object state)
 Runs a method in the specified compressed stack on the current thread. More...
 

Detailed Description

Provides methods for setting and capturing the compressed stack on the current thread. This class cannot be inherited.

Definition at line 13 of file CompressedStack.cs.

Member Function Documentation

◆ Capture()

static CompressedStack System.Threading.CompressedStack.Capture ( )
static

Captures the compressed stack from the current thread.

Returns
A T:System.Threading.CompressedStack object.

Definition at line 166 of file CompressedStack.cs.

◆ CreateCopy()

CompressedStack System.Threading.CompressedStack.CreateCopy ( )

Creates a copy of the current compressed stack.

Returns
A T:System.Threading.CompressedStack object representing the current compressed stack.

Definition at line 242 of file CompressedStack.cs.

◆ GetCompressedStack()

static CompressedStack System.Threading.CompressedStack.GetCompressedStack ( )
static

Gets the compressed stack for the current thread.

Returns
A T:System.Threading.CompressedStack for the current thread.
Exceptions
T:System.Security.SecurityExceptionA caller in the call chain does not have permission to access unmanaged code.-or-The request for T:System.Security.Permissions.StrongNameIdentityPermission failed.

Definition at line 114 of file CompressedStack.cs.

◆ GetObjectData()

void System.Threading.CompressedStack.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Sets the T:System.Runtime.Serialization.SerializationInfo object with the logical context information needed to recreate an instance of this execution context.

Parameters
infoThe T:System.Runtime.Serialization.SerializationInfo object to be populated with serialization information.
contextThe T:System.Runtime.Serialization.StreamingContext structure representing the destination context of the serialization.
Exceptions
T:System.ArgumentNullExceptioninfo is null.

Implements System.Runtime.Serialization.ISerializable.

Definition at line 94 of file CompressedStack.cs.

◆ Run()

static void System.Threading.CompressedStack.Run ( CompressedStack  compressedStack,
ContextCallback  callback,
object  state 
)
static

Runs a method in the specified compressed stack on the current thread.

Parameters
compressedStackThe T:System.Threading.CompressedStack to set.
callbackA T:System.Threading.ContextCallback that represents the method to be run in the specified security context.
stateThe object to be passed to the callback method.
Exceptions
T:System.ArgumentExceptioncompressedStack is null.

Definition at line 179 of file CompressedStack.cs.


The documentation for this class was generated from the following file: