System.Threading.ContextCallback Delegate

Represents a method to be called within a new context.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public delegate void ContextCallback (object state)

Parameters

state
Documentation for this section has not yet been entered.

Remarks

System.Threading.ContextCallback is used by the ExecutionContext.Run(ExecutionContext, ContextCallback, object) and the System.Security.SecurityContext.Run(System.Security.SecurityContext, ContextCallback, object) methods. System.Threading.ContextCallback represents the method to be run in the provided context. Upon completion of the method execution, the context is restored to its previous state.

Create the delegate by passing your callback method to the System.Threading.ContextCallback constructor. Your method must have the signature shown here.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0