IBackgroundDispatcher.QueueUserWorkItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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