Queues the user work item to be executed by the single thread.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void QueueUserWorkItem( WaitCallback callback, Object state )
Public Sub QueueUserWorkItem ( _ callback As WaitCallback, _ state As Object _ )
public: void QueueUserWorkItem( WaitCallback^ callback, Object^ state )
Parameters
- callback (WaitCallback)
- The callback to be executed within the single thread.
- state (Object)
- The state object to be passed to the callback.