WorkerThreadPoolQueueUserWorkItem Method (WaitCallback, Object, Int32, Int32) |
Adds a user work item to the Threadpool that is processed after the given time and tagged with the given handle.
Namespace:
Jam.Shell
Assembly:
ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax public void QueueUserWorkItem(
WaitCallback waitCallBack,
Object state,
int handle,
int timeToWait
)
Public Sub QueueUserWorkItem (
waitCallBack As WaitCallback,
state As Object,
handle As Integer,
timeToWait As Integer
)
public:
void QueueUserWorkItem(
WaitCallback^ waitCallBack,
Object^ state,
int handle,
int timeToWait
)
member QueueUserWorkItem :
waitCallBack : WaitCallback *
state : Object *
handle : int *
timeToWait : int -> unit
Parameters
- waitCallBack
- Type: System.ThreadingWaitCallback
A WaitCallback that defines the WorkItem. - state
- Type: SystemObject
An object that is passed to the workitem. - handle
- Type: SystemInt32
An id for the WorkItem, like e.g. the handle of the control the queued workitem belongs to. - timeToWait
- Type: SystemInt32
Milliseconds before the WorkItem starts its job.
See Also