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!

ThreadNotify.AddOnNotify (BooleanReturnMethodInvoker, MethodInvoker, Int64)

Sets up a notify. pollMethod will be invoked at intervals of minDelay milliseconds or greater. If pollMethod returns true, notifyMethod will be invoked, up to a maximum of maxTimesToInvoke. Specifying maxTimesToInvoke of-1 will allow it to be invoked any number of times.

[Visual Basic]
Overloads Overridable Public Sub AddOnNotify( _
   ByVal pollMethod As BooleanReturnMethodInvoker, _
   ByVal notifyMethod As MethodInvoker, _
   ByVal minDelay As Long _
)
[C#]
public virtual void AddOnNotify(
   BooleanReturnMethodInvoker pollMethod,
   MethodInvoker notifyMethod,
   long minDelay
);
[C++]
public: virtual void AddOnNotify(
   BooleanReturnMethodInvoker* pollMethod,
   MethodInvoker* notifyMethod,
   __int64 minDelay
);
[JScript]
public function AddOnNotify(
   pollMethod : BooleanReturnMethodInvoker,
   notifyMethod : MethodInvoker,
   minDelay : long
);

Parameters

pollMethod
The method to poll. notifyMethod is invoked when it returns true
notifyMethod
The method to call when pollMethod returns true.
minDelay
The minimum interval between polling calls, in milliseconds. The interval may be longer, depending on the polling operations of other notifies.

See Also

ThreadNotify Class | ThreadNotify Members | System.WinForms.ComponentModel Namespace | ThreadNotify.AddOnNotify Overload List