Provides methods for setting and capturing the compressed stack on the current thread. This class cannot be inherited.
More...
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.
◆ Capture()
Captures the compressed stack from the current thread.
- Returns
- A T:System.Threading.CompressedStack object.
Definition at line 166 of file CompressedStack.cs.
◆ 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.SecurityException | A 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()
Sets the T:System.Runtime.Serialization.SerializationInfo object with the logical context information needed to recreate an instance of this execution context.
- Parameters
-
info | The T:System.Runtime.Serialization.SerializationInfo object to be populated with serialization information. |
context | The T:System.Runtime.Serialization.StreamingContext structure representing the destination context of the serialization. |
- Exceptions
-
T:System.ArgumentNullException | info is null . |
Implements System.Runtime.Serialization.ISerializable.
Definition at line 94 of file CompressedStack.cs.
◆ Run()
Runs a method in the specified compressed stack on the current thread.
- Parameters
-
compressedStack | The T:System.Threading.CompressedStack to set. |
callback | A T:System.Threading.ContextCallback that represents the method to be run in the specified security context. |
state | The object to be passed to the callback method. |
- Exceptions
-
T:System.ArgumentException | compressedStack is null . |
Definition at line 179 of file CompressedStack.cs.
The documentation for this class was generated from the following file: