CompressedStack.Run Method (CompressedStack, ContextCallback, Object)

 

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

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public 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
Return to top
Show: