WaitHandleExtensions 类

定义

提供针对 wait 句柄使用 safe 句柄的简便方法。Provides convenience methods to for working with a safe handle for a wait handle.

public ref class WaitHandleExtensions abstract sealed
public static class WaitHandleExtensions
type WaitHandleExtensions = class
Public Module WaitHandleExtensions
继承
WaitHandleExtensions

注解

WaitHandleExtensions 类包括两个扩展方法,使用这些方法可以创建等待句柄的安全句柄,并从安全句柄中检索本机操作系统句柄。The WaitHandleExtensions class includes two extension methods that allow you to create a safe handle for a wait handle and to retrieve the native operating system handle from a safe handle.

方法

GetSafeWaitHandle(WaitHandle)

获取本机操作系统等待句柄的安全句柄。Gets the safe handle for a native operating system wait handle.

SetSafeWaitHandle(WaitHandle, SafeWaitHandle)

设置本机操作系统等待句柄的安全句柄。Sets a safe handle for a native operating system wait handle.

适用于