此页面有用吗?
您对此内容的反馈非常重要。 请告诉我们您的想法。
更多反馈?
1500 个剩余字符
MSDN Library
信息
您所需的主题如下所示。但此主题未包含在此库中。

SignalNotifier Class

在事件或信号量发出信号时运行方法。还可以指定超时值,使委托在命名事件未发生(或者信号量未达到终止状态),但已超过时间范围时运行。

注意  桌面和 Windows 应用商店应用程序均支持 ThreadPool API。

语法


Public NotInheritable Class SignalNotifier

特性

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

成员

SignalNotifier类 具有这些类型的成员:

方法

The SignalNotifier 类 具有这些方法。 它还继承方法于Object 类.

方法说明
AttachToEvent(String, SignalHandler) Attaches a SignalHandler delegate to an event. The delegated method will run the next time the event occurs.
AttachToEvent(String, SignalHandler, TimeSpan) Attaches a SignalHandler delegate to an event. The delegated method will run if the event occurs or the time span elapses, whichever comes first.
AttachToSemaphore(String, SignalHandler) Attaches a SignalHandler delegate to a named semaphore. The delegated method will run when the named semaphore is signaled.
AttachToSemaphore(String, SignalHandler, TimeSpan) Attaches a SignalHandler delegate to a named semaphore and specifies a timeout value. The delegated method will run when the named semaphore is signaled, or if the time span elapses before the semaphore reaches a signaled state.
Enable Submits the SignalNotifier to the thread pool.
Terminate Terminates the SignalNotifier if it has not already started running.

 

要求

最低支持客户端

Windows 8 [仅 Windows 应用商店应用程序]

最低支持服务器

Windows Server 2012 [仅 Windows 应用商店应用程序]

最低支持电话

Windows Phone 8

命名空间

Windows.System.Threading.Core
Windows::System::Threading::Core [C++]

元数据

Windows.winmd

另请参见

Object

 

 

显示:
© 2015 Microsoft