1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Threading.ThreadPool</name>
7 <member name="T:System.Threading.IThreadPoolWorkItem">
8 <summary>Represents a work item that can be executed by the <see cref="T:System.Threading.ThreadPool" />.</summary>
10 <member name="M:System.Threading.IThreadPoolWorkItem.Execute">
11 <summary>Executes the work item on the thread pool.</summary>
13 <member name="T:System.Threading.RegisteredWaitHandle">
14 <summary>Represents a handle that has been registered when calling <see cref="M:System.Threading.ThreadPool.RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.UInt32,System.Boolean)" />. This class cannot be inherited.</summary>
16 <member name="M:System.Threading.RegisteredWaitHandle.Unregister(System.Threading.WaitHandle)">
17 <summary>Cancels a registered wait operation issued by the <see cref="M:System.Threading.ThreadPool.RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.UInt32,System.Boolean)" /> method.</summary>
18 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to be signaled.</param>
20 <see langword="true" /> if the function succeeds; otherwise, <see langword="false" />.</returns>
22 <member name="T:System.Threading.ThreadPool">
23 <summary>Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers.</summary>
25 <member name="M:System.Threading.ThreadPool.BindHandle(System.IntPtr)">
26 <summary>Binds an operating system handle to the <see cref="T:System.Threading.ThreadPool" />.</summary>
27 <param name="osHandle">An <see cref="T:System.IntPtr" /> that holds the handle. The handle must have been opened for overlapped I/O on the unmanaged side.</param>
28 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
30 <see langword="true" /> if the handle is bound; otherwise, <see langword="false" />.</returns>
32 <member name="M:System.Threading.ThreadPool.BindHandle(System.Runtime.InteropServices.SafeHandle)">
33 <summary>Binds an operating system handle to the <see cref="T:System.Threading.ThreadPool" />.</summary>
34 <param name="osHandle">A <see cref="T:System.Runtime.InteropServices.SafeHandle" /> that holds the operating system handle. The handle must have been opened for overlapped I/O on the unmanaged side.</param>
35 <exception cref="T:System.ArgumentNullException">
36 <paramref name="osHandle" /> is <see langword="null" />.</exception>
38 <see langword="true" /> if the handle is bound; otherwise, <see langword="false" />.</returns>
40 <member name="M:System.Threading.ThreadPool.GetAvailableThreads(System.Int32@,System.Int32@)">
41 <summary>Retrieves the difference between the maximum number of thread pool threads returned by the <see cref="M:System.Threading.ThreadPool.GetMaxThreads(System.Int32@,System.Int32@)" /> method, and the number currently active.</summary>
42 <param name="workerThreads">The number of available worker threads.</param>
43 <param name="completionPortThreads">The number of available asynchronous I/O threads.</param>
45 <member name="M:System.Threading.ThreadPool.GetMaxThreads(System.Int32@,System.Int32@)">
46 <summary>Retrieves the number of requests to the thread pool that can be active concurrently. All requests above that number remain queued until thread pool threads become available.</summary>
47 <param name="workerThreads">The maximum number of worker threads in the thread pool.</param>
48 <param name="completionPortThreads">The maximum number of asynchronous I/O threads in the thread pool.</param>
50 <member name="M:System.Threading.ThreadPool.GetMinThreads(System.Int32@,System.Int32@)">
51 <summary>Retrieves the minimum number of threads the thread pool creates on demand, as new requests are made, before switching to an algorithm for managing thread creation and destruction.</summary>
52 <param name="workerThreads">When this method returns, contains the minimum number of worker threads that the thread pool creates on demand.</param>
53 <param name="completionPortThreads">When this method returns, contains the minimum number of asynchronous I/O threads that the thread pool creates on demand.</param>
55 <member name="M:System.Threading.ThreadPool.QueueUserWorkItem(System.Threading.WaitCallback)">
56 <summary>Queues a method for execution. The method executes when a thread pool thread becomes available.</summary>
57 <param name="callBack">A <see cref="T:System.Threading.WaitCallback" /> that represents the method to be executed.</param>
58 <exception cref="T:System.ArgumentNullException">
59 <paramref name="callBack" /> is <see langword="null" />.</exception>
60 <exception cref="T:System.NotSupportedException">The common language runtime (CLR) is hosted, and the host does not support this action.</exception>
62 <see langword="true" /> if the method is successfully queued; <see cref="T:System.NotSupportedException" /> is thrown if the work item could not be queued.</returns>
64 <member name="M:System.Threading.ThreadPool.QueueUserWorkItem(System.Threading.WaitCallback,System.Object)">
65 <summary>Queues a method for execution, and specifies an object containing data to be used by the method. The method executes when a thread pool thread becomes available.</summary>
66 <param name="callBack">A <see cref="T:System.Threading.WaitCallback" /> representing the method to execute.</param>
67 <param name="state">An object containing data to be used by the method.</param>
68 <exception cref="T:System.NotSupportedException">The common language runtime (CLR) is hosted, and the host does not support this action.</exception>
69 <exception cref="T:System.ArgumentNullException">
70 <paramref name="callBack" /> is <see langword="null" />.</exception>
72 <see langword="true" /> if the method is successfully queued; <see cref="T:System.NotSupportedException" /> is thrown if the work item could not be queued.</returns>
74 <member name="M:System.Threading.ThreadPool.QueueUserWorkItem``1(System.Action{``0},``0,System.Boolean)">
75 <summary>Queues a method specified by an <see cref="T:System.Action`1" /> delegate for execution, and provides data to be used by the method. The method executes when a thread pool thread becomes available.</summary>
76 <param name="callBack">An <see cref="T:System.Action`1" /> representing the method to execute.</param>
77 <param name="state">An object containing data to be used by the method.</param>
78 <param name="preferLocal">
79 <see langword="true" /> to prefer queueing the work item in a queue close to the current thread; <see langword="false" /> to prefer queueing the work item to the thread pool's shared queue.</param>
80 <typeparam name="TState">The type of elements of <paramref name="state" />.</typeparam>
82 <see langword="true" /> if the method is successfully queued; <see cref="T:System.NotSupportedException" /> is thrown if the work item could not be queued.</returns>
84 <member name="M:System.Threading.ThreadPool.RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.Int32,System.Boolean)">
85 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a 32-bit signed integer for the time-out in milliseconds.</summary>
86 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
87 <param name="callBack">The <see cref="T:System.Threading.WaitOrTimerCallback" /> delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
88 <param name="state">The object that is passed to the delegate.</param>
89 <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
90 <param name="executeOnlyOnce">
91 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
92 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsTimeOutInterval" /> parameter is less than -1.</exception>
93 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> that encapsulates the native handle.</returns>
95 <member name="M:System.Threading.ThreadPool.RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.Int64,System.Boolean)">
96 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a 64-bit signed integer for the time-out in milliseconds.</summary>
97 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
98 <param name="callBack">The <see cref="T:System.Threading.WaitOrTimerCallback" /> delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
99 <param name="state">The object passed to the delegate.</param>
100 <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
101 <param name="executeOnlyOnce">
102 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
103 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsTimeOutInterval" /> parameter is less than -1.</exception>
104 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> that encapsulates the native handle.</returns>
106 <member name="M:System.Threading.ThreadPool.RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.TimeSpan,System.Boolean)">
107 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a <see cref="T:System.TimeSpan" /> value for the time-out.</summary>
108 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
109 <param name="callBack">The <see cref="T:System.Threading.WaitOrTimerCallback" /> delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
110 <param name="state">The object passed to the delegate.</param>
111 <param name="timeout">The time-out represented by a <see cref="T:System.TimeSpan" />. If <paramref name="timeout" /> is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="timeout" /> is -1, the function's time-out interval never elapses.</param>
112 <param name="executeOnlyOnce">
113 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
114 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="timeout" /> parameter is less than -1.</exception>
115 <exception cref="T:System.NotSupportedException">The <paramref name="timeout" /> parameter is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
116 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> that encapsulates the native handle.</returns>
118 <member name="M:System.Threading.ThreadPool.RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.UInt32,System.Boolean)">
119 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a 32-bit unsigned integer for the time-out in milliseconds.</summary>
120 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
121 <param name="callBack">The <see cref="T:System.Threading.WaitOrTimerCallback" /> delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
122 <param name="state">The object passed to the delegate.</param>
123 <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
124 <param name="executeOnlyOnce">
125 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
126 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsTimeOutInterval" /> parameter is less than -1.</exception>
127 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> that can be used to cancel the registered wait operation.</returns>
129 <member name="M:System.Threading.ThreadPool.SetMaxThreads(System.Int32,System.Int32)">
130 <summary>Sets the number of requests to the thread pool that can be active concurrently. All requests above that number remain queued until thread pool threads become available.</summary>
131 <param name="workerThreads">The maximum number of worker threads in the thread pool.</param>
132 <param name="completionPortThreads">The maximum number of asynchronous I/O threads in the thread pool.</param>
134 <see langword="true" /> if the change is successful; otherwise, <see langword="false" />.</returns>
136 <member name="M:System.Threading.ThreadPool.SetMinThreads(System.Int32,System.Int32)">
137 <summary>Sets the minimum number of threads the thread pool creates on demand, as new requests are made, before switching to an algorithm for managing thread creation and destruction.</summary>
138 <param name="workerThreads">The minimum number of worker threads that the thread pool creates on demand.</param>
139 <param name="completionPortThreads">The minimum number of asynchronous I/O threads that the thread pool creates on demand.</param>
141 <see langword="true" /> if the change is successful; otherwise, <see langword="false" />.</returns>
143 <member name="M:System.Threading.ThreadPool.UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped*)">
144 <summary>Queues an overlapped I/O operation for execution.</summary>
145 <param name="overlapped">The <see cref="T:System.Threading.NativeOverlapped" /> structure to queue.</param>
147 <see langword="true" /> if the operation was successfully queued to an I/O completion port; otherwise, <see langword="false" />.</returns>
149 <member name="M:System.Threading.ThreadPool.UnsafeQueueUserWorkItem(System.Threading.IThreadPoolWorkItem,System.Boolean)">
150 <summary>Queues the specified work item object to the thread pool.</summary>
151 <param name="callBack">The work item to invoke when a thread in the thread pool picks up the work item.</param>
152 <param name="preferLocal">
153 <see langword="true" /> to prefer queueing the work item in a queue close to the current thread; <see langword="false" /> to prefer queueing the work item to the thread pool's shared queue.</param>
154 <exception cref="T:System.ArgumentNullException">
155 <paramref name="callback" /> is <see langword="null" />.</exception>
156 <exception cref="T:System.ArgumentOutOfRangeException">The work item is a <see cref="T:System.Threading.Tasks.Task" />.</exception>
157 <exception cref="T:System.OutOfMemoryException">The work item could not be queued.</exception>
159 <see langword="true" /> if the method succeeds; <see cref="T:System.OutOfMemoryException" /> is thrown if the work item could not be queued.</returns>
161 <member name="M:System.Threading.ThreadPool.UnsafeQueueUserWorkItem(System.Threading.WaitCallback,System.Object)">
162 <summary>Queues the specified delegate to the thread pool, but does not propagate the calling stack to the worker thread.</summary>
163 <param name="callBack">A <see cref="T:System.Threading.WaitCallback" /> that represents the delegate to invoke when a thread in the thread pool picks up the work item.</param>
164 <param name="state">The object that is passed to the delegate when serviced from the thread pool.</param>
165 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
166 <exception cref="T:System.ApplicationException">An out-of-memory condition was encountered.</exception>
167 <exception cref="T:System.OutOfMemoryException">The work item could not be queued.</exception>
168 <exception cref="T:System.ArgumentNullException">
169 <paramref name="callBack" /> is <see langword="null" />.</exception>
171 <see langword="true" /> if the method succeeds; <see cref="T:System.OutOfMemoryException" /> is thrown if the work item could not be queued.</returns>
173 <member name="M:System.Threading.ThreadPool.UnsafeQueueUserWorkItem``1(System.Action{``0},``0,System.Boolean)">
174 <summary>Queues a method specified by an <see cref="T:System.Action`1" /> delegate for execution, and specifies an object containing data to be used by the method. The method executes when a thread pool thread becomes available.</summary>
175 <param name="callBack">A delegate representing the method to execute.</param>
176 <param name="state">An object containing data to be used by the method.</param>
177 <param name="preferLocal">
178 <see langword="true" /> to prefer queueing the work item in a queue close to the current thread; <see langword="false" /> to prefer queueing the work item to the thread pool's shared queue.</param>
179 <typeparam name="TState">The type of elements of <paramref name="state" />.</typeparam>
180 <exception cref="T:System.ArgumentNullException">
181 <paramref name="callback" /> is <see langword="null" />.</exception>
182 <exception cref="T:System.NotSupportedException">The work item could not be queued.</exception>
184 <see langword="true" /> if the method is successfully queued; <see cref="T:System.NotSupportedException" /> is thrown if the work item could not be queued.</returns>
186 <member name="M:System.Threading.ThreadPool.UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.Int32,System.Boolean)">
187 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, using a 32-bit signed integer for the time-out in milliseconds. This method does not propagate the calling stack to the worker thread.</summary>
188 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
189 <param name="callBack">The delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
190 <param name="state">The object that is passed to the delegate.</param>
191 <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
192 <param name="executeOnlyOnce">
193 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
194 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsTimeOutInterval" /> parameter is less than -1.</exception>
195 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
196 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> object that can be used to cancel the registered wait operation.</returns>
198 <member name="M:System.Threading.ThreadPool.UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.Int64,System.Boolean)">
199 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a 64-bit signed integer for the time-out in milliseconds. This method does not propagate the calling stack to the worker thread.</summary>
200 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
201 <param name="callBack">The delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
202 <param name="state">The object that is passed to the delegate.</param>
203 <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
204 <param name="executeOnlyOnce">
205 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
206 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsTimeOutInterval" /> parameter is less than -1.</exception>
207 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
208 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> object that can be used to cancel the registered wait operation.</returns>
210 <member name="M:System.Threading.ThreadPool.UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.TimeSpan,System.Boolean)">
211 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a <see cref="T:System.TimeSpan" /> value for the time-out. This method does not propagate the calling stack to the worker thread.</summary>
212 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
213 <param name="callBack">The delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
214 <param name="state">The object that is passed to the delegate.</param>
215 <param name="timeout">The time-out represented by a <see cref="T:System.TimeSpan" />. If <paramref name="timeout" /> is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="timeout" /> is -1, the function's time-out interval never elapses.</param>
216 <param name="executeOnlyOnce">
217 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
218 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="timeout" /> parameter is less than -1.</exception>
219 <exception cref="T:System.NotSupportedException">The <paramref name="timeout" /> parameter is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
220 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
221 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> object that can be used to cancel the registered wait operation.</returns>
223 <member name="M:System.Threading.ThreadPool.UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.UInt32,System.Boolean)">
224 <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a 32-bit unsigned integer for the time-out in milliseconds. This method does not propagate the calling stack to the worker thread.</summary>
225 <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
226 <param name="callBack">The delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
227 <param name="state">The object that is passed to the delegate.</param>
228 <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
229 <param name="executeOnlyOnce">
230 <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
231 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
232 <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> object that can be used to cancel the registered wait operation.</returns>
234 <member name="P:System.Threading.ThreadPool.CompletedWorkItemCount">
235 <summary>Gets the number of work items that have been processed so far.</summary>
236 <returns>The number of work items that have been processed so far.</returns>
238 <member name="P:System.Threading.ThreadPool.PendingWorkItemCount">
239 <summary>Gets the number of work items that are currently queued to be processed.</summary>
240 <returns>The number of work items that are currently queued to be processed.</returns>
242 <member name="P:System.Threading.ThreadPool.ThreadCount">
243 <summary>Gets the number of thread pool threads that currently exist.</summary>
244 <returns>The number of thread pool threads that currently exist.</returns>
246 <member name="T:System.Threading.WaitCallback">
247 <summary>Represents a callback method to be executed by a thread pool thread.</summary>
248 <param name="state">An object containing information to be used by the callback method.</param>
250 <member name="T:System.Threading.WaitOrTimerCallback">
251 <summary>Represents a method to be called when a <see cref="T:System.Threading.WaitHandle" /> is signaled or times out.</summary>
252 <param name="state">An object containing information to be used by the callback method each time it executes.</param>
253 <param name="timedOut">
254 <see langword="true" /> if the <see cref="T:System.Threading.WaitHandle" /> timed out; <see langword="false" /> if it was signaled.</param>