Queues a method for execution. The method executes when a thread pool thread becomes available.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ | J# |
public static bool QueueUserWorkItem( WaitCallback callback )
Public Shared Function QueueUserWorkItem ( _ callback As WaitCallback _ ) As Boolean
public: static bool QueueUserWorkItem( WaitCallback^ callback )
public static boolean QueueUserWorkItem( WaitCallback callback )
![](../icons/collapse_all.gif)
- callback (WaitCallback)
- A System.Threading.WaitCallback that represents the method to be executed.
![](../icons/collapse_all.gif)
true if the method is successfully queued; System.OutOfMemoryException is thrown if the work item could not be queued.