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

Queues a user work item to the thread pool.

State data can be stored in the instance fields of the class on which the delegate is defined. By default, the callback function is queued to a non-I/O worker thread.

Overload List

Queues a user work item to the thread pool.

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

Queues a user work item to the thread pool.

[Visual Basic] Overloads Public Shared Function QueueUserWorkItem(WaitCallback) As Boolean
[C#] public static bool QueueUserWorkItem(WaitCallback);
[C++] public: static bool QueueUserWorkItem(WaitCallback*);
[JScript] public static function QueueUserWorkItem(WaitCallback) : Boolean;

See Also

ThreadPool Class | ThreadPool Members | System.Threading Namespace