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!

ThreadPool.QueueUserWorkItem (WaitCallback, Object)

Queues a user work item to the thread pool.

[Visual Basic]
Overloads Public Shared Function QueueUserWorkItem( _
   ByVal callBack As WaitCallback, _
   ByVal state As Object _
) As Boolean
[C#]
public static bool QueueUserWorkItem(
   WaitCallback callBack,
   object state
);
[C++]
public: static bool QueueUserWorkItem(
   WaitCallback* callBack,
   Object* state
);
[JScript]
public static function QueueUserWorkItem(
   callBack : WaitCallback,
   state : Object
) : Boolean;

Parameters

callBack
A callback to execute when thread in the thread pool picks up a work item.
state
The object that is passed to the delegate when serviced from the thread pool.

Return Value

true if the method succeeds.

false if the function fails.

See Also

ThreadPool Class | ThreadPool Members | System.Threading Namespace | ThreadPool.QueueUserWorkItem Overload List