NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WaitOrTimerCallback Delegate

Delegate for the registered Wait objects.

Receives a boolean parameter wich determines whether the handle was signaled or the WaitHandle timed out.

[Visual Basic]
Public Delegate Sub WaitOrTimerCallback( _
   ByVal state As Object, _
   ByVal wasSignalled As Boolean _
)
[C#]
public delegate void WaitOrTimerCallback(
   object state,
   bool wasSignalled
);
[C++]
public __gc __delegate void WaitOrTimerCallback(
   Object* state,
   bool wasSignalled
);

[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your event-handling method must have the same parameters as the WaitOrTimerCallback delegate declaration.

state
The object that is passed to the delegate.
wasSignalled
True indicates that the handle was signaled; False indicates that the handle timed out.

Remarks

Every subclass of Delegate and MulticastDelegate has a constructor and an Invoke method. See the managed C++ code example in the description for the Delegate.

Requirements

Namespace: System.Threading

Assembly: mscorlib.dll

See Also

System.Threading Namespace