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 -> boolPublic Function QueueUserWorkItem (callback As WaitCallback) As BooleanParameters
- 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 -> boolPublic Function QueueUserWorkItem (callback As WaitCallback, state As Object) As BooleanParameters
- callback
- WaitCallback
- state
- Object