SignalNotifier.AttachToEvent methods

Applies to Windows and Windows Phone

Attaches a SignalHandler delegate to an event, causing the delegated method to run the next time the event occurs. A timeout can optionally be specified, causing the delegated method to run if the event occurs or the time span elapses, whichever comes first.

Overload list

MethodDescription
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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

SignalNotifier

 

 

Show:
© 2014 Microsoft