CompressedStack.Run(CompressedStack, ContextCallback, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runs a method in the specified compressed stack on the current thread.
public:
static void Run(System::Threading::CompressedStack ^ compressedStack, System::Threading::ContextCallback ^ callback, System::Object ^ state);
public static void Run (System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object? state);
public static void Run (System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object state);
[System.Security.SecurityCritical]
public static void Run (System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object state);
static member Run : System.Threading.CompressedStack * System.Threading.ContextCallback * obj -> unit
[<System.Security.SecurityCritical>]
static member Run : System.Threading.CompressedStack * System.Threading.ContextCallback * obj -> unit
Public Shared Sub Run (compressedStack As CompressedStack, callback As ContextCallback, state As Object)
Parameters
- compressedStack
- CompressedStack
The CompressedStack to set.
- callback
- ContextCallback
A ContextCallback that represents the method to be run in the specified security context.
- state
- Object
The object to be passed to the callback method.
- Attributes
Exceptions
compressedStack
is null
.
Remarks
The compressed stack is returned to its previous state when the method completes.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.