CompressedStack::Run Method (CompressedStack^, ContextCallback^, Object^)
.NET Framework (current version)
Runs a method in the specified compressed stack on the current thread.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] static void Run( CompressedStack^ compressedStack, ContextCallback^ callback, Object^ state )
Parameters
- compressedStack
-
Type:
System.Threading::CompressedStack^
The CompressedStack to set.
- callback
-
Type:
System.Threading::ContextCallback^
A ContextCallback that represents the method to be run in the specified security context.
- state
-
Type:
System::Object^
The object to be passed to the callback method.
| Exception | Condition |
|---|---|
| ArgumentException | compressedStack is null. |
The compressed stack is returned to its previous state when the method completes.
SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
.NET Framework
Available since 2.0
Available since 2.0
Show: