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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET