- callBack
- A System.Threading.WaitCallback that represents the method to be executed.
true if the method is successfully queued; NotSupportedException is thrown if the work item could not be queued.
You can place data required by the queued method in the instance fields of the class in which the method is defined, or you can use the ThreadPool.QueueUserWorkItem(WaitCallback, object) overload that accepts an object containing the necessary data.
Visual Basic users can omit the System.Threading.WaitCallback constructor, and simply use the AddressOf operator when passing the callback method to ThreadPool.QueueUserWorkItem(WaitCallback, object). Visual Basic automatically calls the correct delegate constructor.
In the .NET Framework version 2.0, the Thread.CurrentPrincipal property value is propagated to worker threads queued using the erload:System.Threading.ThreadPool.QueueUserWorkItem method. In earlier versions, the principal information is not propagated.