Share via


IBackgroundDispatcher.QueueUserWorkItem Method

Definition

Overloads

QueueUserWorkItem(WaitCallback)

Works the same as QueueUserWorkItem(WaitCallback), except that it also manages system state correctly.

QueueUserWorkItem(WaitCallback, Object)

Works the same as QueueUserWorkItem(WaitCallback, Object), except that it also manages system state correctly.

QueueUserWorkItem(WaitCallback)

Works the same as QueueUserWorkItem(WaitCallback), except that it also manages system state correctly.

public:
 bool QueueUserWorkItem(System::Threading::WaitCallback ^ callback);
public bool QueueUserWorkItem (System.Threading.WaitCallback callback);
abstract member QueueUserWorkItem : System.Threading.WaitCallback -> bool
Public Function QueueUserWorkItem (callback As WaitCallback) As Boolean

Parameters

callback
WaitCallback

Returns

Applies to

QueueUserWorkItem(WaitCallback, Object)

Works the same as QueueUserWorkItem(WaitCallback, Object), except that it also manages system state correctly.

public:
 bool QueueUserWorkItem(System::Threading::WaitCallback ^ callback, System::Object ^ state);
public bool QueueUserWorkItem (System.Threading.WaitCallback callback, object state);
abstract member QueueUserWorkItem : System.Threading.WaitCallback * obj -> bool
Public Function QueueUserWorkItem (callback As WaitCallback, state As Object) As Boolean

Parameters

callback
WaitCallback
state
Object

Returns

Applies to