System::Threading::ThreadPool::QueueUserWorkItem 方法

ThreadPool::QueueUserWorkItem(WaitCallback) method

将工作项放入带有无参数回调的队列。

static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback)
ParameterType描述
回调WaitCallback回调函数用于作为作业。

ReturnValue

始终返回 true。

另见

ThreadPool::QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&) method

将工作项放入带有无参数回调的队列。

static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback, const System::SharedPtr<System::Object> &state)
ParameterType描述
回调WaitCallback回调函数用于作为作业。
状态const System::SharedPtr<System::Object>&作业函数参数。

ReturnValue

始终返回 true。

另见