1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Threading.Thread</name>
6 <member name="T:System.Threading.ThreadStateException">
7 <summary>The exception that is thrown when a <see cref="T:System.Threading.Thread"></see> is in an invalid <see cref="P:System.Threading.Thread.ThreadState"></see> for the method call.</summary>
9 <member name="M:System.Threading.ThreadStateException.#ctor">
10 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException"></see> class with default properties.</summary>
12 <member name="M:System.Threading.ThreadStateException.#ctor(System.String)">
13 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException"></see> class with a specified error message.</summary>
14 <param name="message">The error message that explains the reason for the exception.</param>
16 <member name="M:System.Threading.ThreadStateException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
17 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException"></see> class with serialized data.</summary>
18 <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param>
19 <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param>
21 <member name="M:System.Threading.ThreadStateException.#ctor(System.String,System.Exception)">
22 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException"></see> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
23 <param name="message">The error message that explains the reason for the exception.</param>
24 <param name="innerException">The exception that is the cause of the current exception. If the innerException parameter is not <see langword="null"></see>, the current exception is raised in a <see langword="catch"></see> block that handles the inner exception.</param>
26 <member name="T:System.Threading.ThreadState">
27 <summary>Specifies the execution states of a <see cref="T:System.Threading.Thread"></see>.</summary>
29 <member name="F:System.Threading.ThreadState.Aborted">
30 <summary>The thread state includes <see cref="F:System.Threading.ThreadState.AbortRequested"></see> and the thread is now dead, but its state has not yet changed to <see cref="F:System.Threading.ThreadState.Stopped"></see>.</summary>
33 <member name="F:System.Threading.ThreadState.AbortRequested">
34 <summary>The <see cref="M:System.Threading.Thread.Abort(System.Object)"></see> method has been invoked on the thread, but the thread has not yet received the pending <see cref="T:System.Threading.ThreadAbortException"></see> that will attempt to terminate it.</summary>
37 <member name="F:System.Threading.ThreadState.Background">
38 <summary>The thread is being executed as a background thread, as opposed to a foreground thread. This state is controlled by setting the <see cref="P:System.Threading.Thread.IsBackground"></see> property.</summary>
41 <member name="F:System.Threading.ThreadState.Running">
42 <summary>The thread has been started, it is not blocked, and there is no pending <see cref="T:System.Threading.ThreadAbortException"></see>.</summary>
45 <member name="F:System.Threading.ThreadState.Stopped">
46 <summary>The thread has stopped.</summary>
49 <member name="F:System.Threading.ThreadState.StopRequested">
50 <summary>The thread is being requested to stop. This is for internal use only.</summary>
53 <member name="F:System.Threading.ThreadState.Suspended">
54 <summary>The thread has been suspended.</summary>
57 <member name="F:System.Threading.ThreadState.SuspendRequested">
58 <summary>The thread is being requested to suspend.</summary>
61 <member name="F:System.Threading.ThreadState.Unstarted">
62 <summary>The <see cref="M:System.Threading.Thread.Start"></see> method has not been invoked on the thread.</summary>
65 <member name="F:System.Threading.ThreadState.WaitSleepJoin">
66 <summary>The thread is blocked. This could be the result of calling <see cref="M:System.Threading.Thread.Sleep(System.Int32)"></see> or <see cref="M:System.Threading.Thread.Join"></see>, of requesting a lock — for example, by calling <see cref="M:System.Threading.Monitor.Enter(System.Object)"></see> or <see cref="M:System.Threading.Monitor.Wait(System.Object,System.Int32,System.Boolean)"></see> — or of waiting on a thread synchronization object such as <see cref="T:System.Threading.ManualResetEvent"></see>.</summary>
69 <member name="T:System.Threading.ThreadStartException">
70 <summary>The exception that is thrown when a failure occurs in a managed thread after the underlying operating system thread has been started, but before the thread is ready to execute user code.</summary>
72 <member name="T:System.Threading.ThreadStart">
73 <summary>Represents the method that executes on a <see cref="T:System.Threading.Thread"></see>.</summary>
75 <member name="T:System.Threading.ThreadPriority">
76 <summary>Specifies the scheduling priority of a <see cref="T:System.Threading.Thread"></see>.</summary>
78 <member name="F:System.Threading.ThreadPriority.AboveNormal">
79 <summary>The <see cref="T:System.Threading.Thread"></see> can be scheduled after threads with <see langword="Highest"></see> priority and before those with <see langword="Normal"></see> priority.</summary>
82 <member name="F:System.Threading.ThreadPriority.BelowNormal">
83 <summary>The <see cref="T:System.Threading.Thread"></see> can be scheduled after threads with <see langword="Normal"></see> priority and before those with <see langword="Lowest"></see> priority.</summary>
86 <member name="F:System.Threading.ThreadPriority.Highest">
87 <summary>The <see cref="T:System.Threading.Thread"></see> can be scheduled before threads with any other priority.</summary>
90 <member name="F:System.Threading.ThreadPriority.Lowest">
91 <summary>The <see cref="T:System.Threading.Thread"></see> can be scheduled after threads with any other priority.</summary>
94 <member name="F:System.Threading.ThreadPriority.Normal">
95 <summary>The <see cref="T:System.Threading.Thread"></see> can be scheduled after threads with <see langword="AboveNormal"></see> priority and before those with <see langword="BelowNormal"></see> priority. Threads have <see langword="Normal"></see> priority by default.</summary>
98 <member name="T:System.Threading.ThreadInterruptedException">
99 <summary>The exception that is thrown when a <see cref="T:System.Threading.Thread"></see> is interrupted while it is in a waiting state.</summary>
101 <member name="M:System.Threading.ThreadInterruptedException.#ctor">
102 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadInterruptedException"></see> class with default properties.</summary>
104 <member name="M:System.Threading.ThreadInterruptedException.#ctor(System.String)">
105 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadInterruptedException"></see> class with a specified error message.</summary>
106 <param name="message">The error message that explains the reason for the exception.</param>
108 <member name="M:System.Threading.ThreadInterruptedException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
109 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadInterruptedException"></see> class with serialized data.</summary>
110 <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param>
111 <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param>
113 <member name="M:System.Threading.ThreadInterruptedException.#ctor(System.String,System.Exception)">
114 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadInterruptedException"></see> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
115 <param name="message">The error message that explains the reason for the exception.</param>
116 <param name="innerException">The exception that is the cause of the current exception. If the innerException parameter is not <see langword="null"></see>, the current exception is raised in a <see langword="catch"></see> block that handles the inner exception.</param>
118 <member name="T:System.Threading.ThreadExceptionEventHandler">
119 <summary>Represents the method that will handle the <see cref="E:System.Windows.Forms.Application.ThreadException"></see> event of an <see cref="T:System.Windows.Forms.Application"></see>.</summary>
120 <param name="sender">The source of the event.</param>
121 <param name="e">A <see cref="T:System.Threading.ThreadExceptionEventArgs"></see> that contains the event data.</param>
123 <member name="T:System.Threading.ThreadExceptionEventArgs">
124 <summary>Provides data for the <see cref="E:System.Windows.Forms.Application.ThreadException"></see> event.</summary>
126 <member name="M:System.Threading.ThreadExceptionEventArgs.#ctor(System.Exception)">
127 <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadExceptionEventArgs"></see> class.</summary>
128 <param name="t">The <see cref="T:System.Exception"></see> that occurred.</param>
130 <member name="P:System.Threading.ThreadExceptionEventArgs.Exception">
131 <summary>Gets the <see cref="T:System.Exception"></see> that occurred.</summary>
132 <returns>The <see cref="T:System.Exception"></see> that occurred.</returns>
134 <member name="T:System.Threading.ThreadAbortException">
135 <summary>The exception that is thrown when a call is made to the <see cref="M:System.Threading.Thread.Abort(System.Object)"></see> method. This class cannot be inherited.</summary>
137 <member name="P:System.Threading.ThreadAbortException.ExceptionState">
138 <summary>Gets an object that contains application-specific information related to the thread abort.</summary>
139 <returns>An object containing application-specific information.</returns>
141 <member name="T:System.Threading.Thread">
142 <summary>Creates and controls a thread, sets its priority, and gets its status.</summary>
144 <member name="M:System.Threading.Thread.#ctor(System.Threading.ParameterizedThreadStart)">
145 <summary>Initializes a new instance of the <see cref="T:System.Threading.Thread"></see> class, specifying a delegate that allows an object to be passed to the thread when the thread is started.</summary>
146 <param name="start">A delegate that represents the methods to be invoked when this thread begins executing.</param>
147 <exception cref="T:System.ArgumentNullException"><paramref name="start">start</paramref> is <see langword="null"></see>.</exception>
149 <member name="M:System.Threading.Thread.#ctor(System.Threading.ThreadStart)">
150 <summary>Initializes a new instance of the <see cref="T:System.Threading.Thread"></see> class.</summary>
151 <param name="start">A <see cref="T:System.Threading.ThreadStart"></see> delegate that represents the methods to be invoked when this thread begins executing.</param>
152 <exception cref="T:System.ArgumentNullException">The <paramref name="start">start</paramref> parameter is <see langword="null"></see>.</exception>
154 <member name="M:System.Threading.Thread.#ctor(System.Threading.ParameterizedThreadStart,System.Int32)">
155 <summary>Initializes a new instance of the <see cref="T:System.Threading.Thread"></see> class, specifying a delegate that allows an object to be passed to the thread when the thread is started and specifying the maximum stack size for the thread.</summary>
156 <param name="start">A <see cref="T:System.Threading.ParameterizedThreadStart"></see> delegate that represents the methods to be invoked when this thread begins executing.</param>
157 <param name="maxStackSize">The maximum stack size, in bytes, to be used by the thread, or 0 to use the default maximum stack size specified in the header for the executable.
158 Important For partially trusted code, maxStackSize is ignored if it is greater than the default stack size. No exception is thrown.</param>
159 <exception cref="T:System.ArgumentNullException"><paramref name="start">start</paramref> is <see langword="null"></see>.</exception>
160 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="maxStackSize">maxStackSize</paramref> is less than zero.</exception>
162 <member name="M:System.Threading.Thread.#ctor(System.Threading.ThreadStart,System.Int32)">
163 <summary>Initializes a new instance of the <see cref="T:System.Threading.Thread"></see> class, specifying the maximum stack size for the thread.</summary>
164 <param name="start">A <see cref="T:System.Threading.ThreadStart"></see> delegate that represents the methods to be invoked when this thread begins executing.</param>
165 <param name="maxStackSize">The maximum stack size, in bytes, to be used by the thread, or 0 to use the default maximum stack size specified in the header for the executable.
166 Important For partially trusted code, maxStackSize is ignored if it is greater than the default stack size. No exception is thrown.</param>
167 <exception cref="T:System.ArgumentNullException"><paramref name="start">start</paramref> is <see langword="null"></see>.</exception>
168 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="maxStackSize">maxStackSize</paramref> is less than zero.</exception>
170 <member name="M:System.Threading.Thread.Abort">
171 <summary>Raises a <see cref="T:System.Threading.ThreadAbortException"></see> in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread.</summary>
172 <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
173 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
174 <exception cref="T:System.Threading.ThreadStateException">The thread that is being aborted is currently suspended.</exception>
176 <member name="M:System.Threading.Thread.Abort(System.Object)">
177 <summary>Raises a <see cref="T:System.Threading.ThreadAbortException"></see> in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.</summary>
178 <param name="stateInfo">An object that contains application-specific information, such as state, which can be used by the thread being aborted.</param>
179 <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
180 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
181 <exception cref="T:System.Threading.ThreadStateException">The thread that is being aborted is currently suspended.</exception>
183 <member name="M:System.Threading.Thread.AllocateDataSlot">
184 <summary>Allocates an unnamed data slot on all the threads. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute"></see> attribute instead.</summary>
185 <returns>The allocated named data slot on all threads.</returns>
187 <member name="M:System.Threading.Thread.AllocateNamedDataSlot(System.String)">
188 <summary>Allocates a named data slot on all threads. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute"></see> attribute instead.</summary>
189 <param name="name">The name of the data slot to be allocated.</param>
190 <returns>The allocated named data slot on all threads.</returns>
191 <exception cref="T:System.ArgumentException">A named data slot with the specified name already exists.</exception>
193 <member name="P:System.Threading.Thread.ApartmentState">
194 <summary>Gets or sets the apartment state of this thread.</summary>
195 <returns>One of the <see cref="T:System.Threading.ApartmentState"></see> values. The initial value is <see langword="Unknown"></see>.</returns>
196 <exception cref="T:System.ArgumentException">An attempt is made to set this property to a state that is not a valid apartment state (a state other than single-threaded apartment (<see langword="STA"></see>) or multithreaded apartment (<see langword="MTA"></see>)).</exception>
198 <member name="M:System.Threading.Thread.BeginCriticalRegion">
199 <summary>Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception might jeopardize other tasks in the application domain.</summary>
201 <member name="M:System.Threading.Thread.BeginThreadAffinity">
202 <summary>Notifies a host that managed code is about to execute instructions that depend on the identity of the current physical operating system thread.</summary>
203 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
205 <member name="P:System.Threading.Thread.CurrentCulture">
206 <summary>Gets or sets the culture for the current thread.</summary>
207 <returns>An object that represents the culture for the current thread.</returns>
208 <exception cref="T:System.ArgumentNullException">The property is set to <see langword="null"></see>.</exception>
210 <member name="P:System.Threading.Thread.CurrentPrincipal">
211 <summary>Gets or sets the thread&#39;s current principal (for role-based security).</summary>
212 <returns>An <see cref="T:System.Security.Principal.IPrincipal"></see> value representing the security context.</returns>
213 <exception cref="T:System.Security.SecurityException">The caller does not have the permission required to set the principal.</exception>
215 <member name="P:System.Threading.Thread.CurrentThread">
216 <summary>Gets the currently running thread.</summary>
217 <returns>A <see cref="T:System.Threading.Thread"></see> that is the representation of the currently running thread.</returns>
219 <member name="P:System.Threading.Thread.CurrentUICulture">
220 <summary>Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.</summary>
221 <returns>An object that represents the current culture.</returns>
222 <exception cref="T:System.ArgumentNullException">The property is set to <see langword="null"></see>.</exception>
223 <exception cref="T:System.ArgumentException">The property is set to a culture name that cannot be used to locate a resource file. Resource filenames must include only letters, numbers, hyphens or underscores.</exception>
225 <member name="M:System.Threading.Thread.DisableComObjectEagerCleanup">
226 <summary>Turns off automatic cleanup of runtime callable wrappers (RCW) for the current thread.</summary>
228 <member name="M:System.Threading.Thread.EndCriticalRegion">
229 <summary>Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception are limited to the current task.</summary>
231 <member name="M:System.Threading.Thread.EndThreadAffinity">
232 <summary>Notifies a host that managed code has finished executing instructions that depend on the identity of the current physical operating system thread.</summary>
233 <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
235 <member name="P:System.Threading.Thread.ExecutionContext">
236 <summary>Gets an <see cref="T:System.Threading.ExecutionContext"></see> object that contains information about the various contexts of the current thread.</summary>
237 <returns>An <see cref="T:System.Threading.ExecutionContext"></see> object that consolidates context information for the current thread.</returns>
239 <member name="M:System.Threading.Thread.Finalize">
240 <summary>Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the <see cref="T:System.Threading.Thread"></see> object.</summary>
242 <member name="M:System.Threading.Thread.FreeNamedDataSlot(System.String)">
243 <summary>Eliminates the association between a name and a slot, for all threads in the process. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute"></see> attribute instead.</summary>
244 <param name="name">The name of the data slot to be freed.</param>
246 <member name="M:System.Threading.Thread.GetApartmentState">
247 <summary>Returns an <see cref="T:System.Threading.ApartmentState"></see> value indicating the apartment state.</summary>
248 <returns>One of the <see cref="T:System.Threading.ApartmentState"></see> values indicating the apartment state of the managed thread. The default is <see cref="F:System.Threading.ApartmentState.Unknown"></see>.</returns>
250 <member name="M:System.Threading.Thread.GetCompressedStack">
251 <summary>Returns a <see cref="T:System.Threading.CompressedStack"></see> object that can be used to capture the stack for the current thread.</summary>
252 <returns>None.</returns>
253 <exception cref="T:System.InvalidOperationException">In all cases.</exception>
255 <member name="M:System.Threading.Thread.GetCurrentProcessorId">
258 <member name="M:System.Threading.Thread.GetData(System.LocalDataStoreSlot)">
259 <summary>Retrieves the value from the specified slot on the current thread, within the current thread&#39;s current domain. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute"></see> attribute instead.</summary>
260 <param name="slot">The <see cref="T:System.LocalDataStoreSlot"></see> from which to get the value.</param>
261 <returns>The retrieved value.</returns>
263 <member name="M:System.Threading.Thread.GetDomain">
264 <summary>Returns the current domain in which the current thread is running.</summary>
265 <returns>An <see cref="T:System.AppDomain"></see> representing the current application domain of the running thread.</returns>
267 <member name="M:System.Threading.Thread.GetDomainID">
268 <summary>Returns a unique application domain identifier.</summary>
269 <returns>A 32-bit signed integer uniquely identifying the application domain.</returns>
271 <member name="M:System.Threading.Thread.GetHashCode">
272 <summary>Returns a hash code for the current thread.</summary>
273 <returns>An integer hash code value.</returns>
275 <member name="M:System.Threading.Thread.GetNamedDataSlot(System.String)">
276 <summary>Looks up a named data slot. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute"></see> attribute instead.</summary>
277 <param name="name">The name of the local data slot.</param>
278 <returns>A <see cref="T:System.LocalDataStoreSlot"></see> allocated for this thread.</returns>
280 <member name="M:System.Threading.Thread.Interrupt">
281 <summary>Interrupts a thread that is in the <see langword="WaitSleepJoin"></see> thread state.</summary>
282 <exception cref="T:System.Security.SecurityException">The caller does not have the appropriate <see cref="System.Security.Permissions.SecurityPermission"></see>.</exception>
284 <member name="P:System.Threading.Thread.IsAlive">
285 <summary>Gets a value indicating the execution status of the current thread.</summary>
286 <returns><see langword="true"></see> if this thread has been started and has not terminated normally or aborted; otherwise, <see langword="false"></see>.</returns>
288 <member name="P:System.Threading.Thread.IsBackground">
289 <summary>Gets or sets a value indicating whether or not a thread is a background thread.</summary>
290 <returns><see langword="true"></see> if this thread is or is to become a background thread; otherwise, <see langword="false"></see>.</returns>
291 <exception cref="T:System.Threading.ThreadStateException">The thread is dead.</exception>
293 <member name="P:System.Threading.Thread.IsThreadPoolThread">
294 <summary>Gets a value indicating whether or not a thread belongs to the managed thread pool.</summary>
295 <returns><see langword="true"></see> if this thread belongs to the managed thread pool; otherwise, <see langword="false"></see>.</returns>
297 <member name="M:System.Threading.Thread.Join">
298 <summary>Blocks the calling thread until the thread represented by this instance terminates, while continuing to perform standard COM and <see langword="SendMessage"></see> pumping.</summary>
299 <exception cref="T:System.Threading.ThreadStateException">The caller attempted to join a thread that is in the <see cref="System.Threading.ThreadState.Unstarted"></see> state.</exception>
300 <exception cref="T:System.Threading.ThreadInterruptedException">The thread is interrupted while waiting.</exception>
302 <member name="M:System.Threading.Thread.Join(System.Int32)">
303 <summary>Blocks the calling thread until the thread represented by this instance terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.</summary>
304 <param name="millisecondsTimeout">The number of milliseconds to wait for the thread to terminate.</param>
305 <returns><see langword="true"></see> if the thread has terminated; <see langword="false"></see> if the thread has not terminated after the amount of time specified by the <paramref name="millisecondsTimeout">millisecondsTimeout</paramref> parameter has elapsed.</returns>
306 <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="millisecondsTimeout">millisecondsTimeout</paramref> is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see> in milliseconds.</exception>
307 <exception cref="T:System.Threading.ThreadStateException">The thread has not been started.</exception>
309 <member name="M:System.Threading.Thread.Join(System.TimeSpan)">
310 <summary>Blocks the calling thread until the thread represented by this instance terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.</summary>
311 <param name="timeout">A <see cref="T:System.TimeSpan"></see> set to the amount of time to wait for the thread to terminate.</param>
312 <returns><see langword="true"></see> if the thread terminated; <see langword="false"></see> if the thread has not terminated after the amount of time specified by the <paramref name="timeout">timeout</paramref> parameter has elapsed.</returns>
313 <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="timeout">timeout</paramref> is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see> in milliseconds, or is greater than <see cref="System.Int32.MaxValue"></see> milliseconds.</exception>
314 <exception cref="T:System.Threading.ThreadStateException">The caller attempted to join a thread that is in the <see cref="System.Threading.ThreadState.Unstarted"></see> state.</exception>
316 <member name="P:System.Threading.Thread.ManagedThreadId">
317 <summary>Gets a unique identifier for the current managed thread.</summary>
318 <returns>An integer that represents a unique identifier for this managed thread.</returns>
320 <member name="M:System.Threading.Thread.MemoryBarrier">
321 <summary>Synchronizes memory access as follows: The processor executing the current thread cannot reorder instructions in such a way that memory accesses prior to the call to <see cref="M:System.Threading.Thread.MemoryBarrier"></see> execute after memory accesses that follow the call to <see cref="M:System.Threading.Thread.MemoryBarrier"></see>.</summary>
323 <member name="P:System.Threading.Thread.Name">
324 <summary>Gets or sets the name of the thread.</summary>
325 <returns>A string containing the name of the thread, or <see langword="null"></see> if no name was set.</returns>
326 <exception cref="T:System.InvalidOperationException">A set operation was requested, but the <see langword="Name"></see> property has already been set.</exception>
328 <member name="P:System.Threading.Thread.Priority">
329 <summary>Gets or sets a value indicating the scheduling priority of a thread.</summary>
330 <returns>One of the <see cref="T:System.Threading.ThreadPriority"></see> values. The default value is <see cref="F:System.Threading.ThreadPriority.Normal"></see>.</returns>
331 <exception cref="T:System.Threading.ThreadStateException">The thread has reached a final state, such as <see cref="System.Threading.ThreadState.Aborted"></see>.</exception>
332 <exception cref="T:System.ArgumentException">The value specified for a set operation is not a valid <see cref="System.Threading.ThreadPriority"></see> value.</exception>
334 <member name="M:System.Threading.Thread.ResetAbort">
335 <summary>Cancels an <see cref="M:System.Threading.Thread.Abort(System.Object)"></see> requested for the current thread.</summary>
336 <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
337 <exception cref="T:System.Threading.ThreadStateException"><see langword="Abort"></see> was not invoked on the current thread.</exception>
338 <exception cref="T:System.Security.SecurityException">The caller does not have the required security permission for the current thread.</exception>
340 <member name="M:System.Threading.Thread.Resume">
341 <summary>Resumes a thread that has been suspended.</summary>
342 <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
343 <exception cref="T:System.Threading.ThreadStateException">The thread has not been started, is dead, or is not in the suspended state.</exception>
344 <exception cref="T:System.Security.SecurityException">The caller does not have the appropriate <see cref="System.Security.Permissions.SecurityPermission"></see>.</exception>
346 <member name="M:System.Threading.Thread.SetApartmentState(System.Threading.ApartmentState)">
347 <summary>Sets the apartment state of a thread before it is started.</summary>
348 <param name="state">The new apartment state.</param>
349 <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported on the macOS and Linux platforms.</exception>
350 <exception cref="T:System.ArgumentException"><paramref name="state">state</paramref> is not a valid apartment state.</exception>
351 <exception cref="T:System.Threading.ThreadStateException">The thread has already been started.</exception>
352 <exception cref="T:System.InvalidOperationException">The apartment state has already been initialized.</exception>
354 <member name="M:System.Threading.Thread.SetCompressedStack(System.Threading.CompressedStack)">
355 <summary>Applies a captured <see cref="T:System.Threading.CompressedStack"></see> to the current thread.</summary>
356 <param name="stack">The <see cref="T:System.Threading.CompressedStack"></see> object to be applied to the current thread.</param>
357 <exception cref="T:System.InvalidOperationException">In all cases.</exception>
359 <member name="M:System.Threading.Thread.SetData(System.LocalDataStoreSlot,System.Object)">
360 <summary>Sets the data in the specified slot on the currently running thread, for that thread&#39;s current domain. For better performance, use fields marked with the <see cref="T:System.ThreadStaticAttribute"></see> attribute instead.</summary>
361 <param name="slot">The <see cref="T:System.LocalDataStoreSlot"></see> in which to set the value.</param>
362 <param name="data">The value to be set.</param>
364 <member name="M:System.Threading.Thread.Sleep(System.Int32)">
365 <summary>Suspends the current thread for the specified number of milliseconds.</summary>
366 <param name="millisecondsTimeout">The number of milliseconds for which the thread is suspended. If the value of the millisecondsTimeout argument is zero, the thread relinquishes the remainder of its time slice to any thread of equal priority that is ready to run. If there are no other threads of equal priority that are ready to run, execution of the current thread is not suspended.</param>
367 <exception cref="T:System.ArgumentOutOfRangeException">The time-out value is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see>.</exception>
369 <member name="M:System.Threading.Thread.Sleep(System.TimeSpan)">
370 <summary>Suspends the current thread for the specified amount of time.</summary>
371 <param name="timeout">The amount of time for which the thread is suspended. If the value of the millisecondsTimeout argument is <see cref="F:System.TimeSpan.Zero"></see>, the thread relinquishes the remainder of its time slice to any thread of equal priority that is ready to run. If there are no other threads of equal priority that are ready to run, execution of the current thread is not suspended.</param>
372 <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="timeout">timeout</paramref> is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see> in milliseconds, or is greater than <see cref="System.Int32.MaxValue"></see> milliseconds.</exception>
374 <member name="M:System.Threading.Thread.SpinWait(System.Int32)">
375 <summary>Causes a thread to wait the number of times defined by the <paramref name="iterations">iterations</paramref> parameter.</summary>
376 <param name="iterations">A 32-bit signed integer that defines how long a thread is to wait.</param>
378 <member name="M:System.Threading.Thread.Start">
379 <summary>Causes the operating system to change the state of the current instance to <see cref="F:System.Threading.ThreadState.Running"></see>.</summary>
380 <exception cref="T:System.Threading.ThreadStateException">The thread has already been started.</exception>
381 <exception cref="T:System.OutOfMemoryException">There is not enough memory available to start this thread.</exception>
383 <member name="M:System.Threading.Thread.Start(System.Object)">
384 <summary>Causes the operating system to change the state of the current instance to <see cref="F:System.Threading.ThreadState.Running"></see>, and optionally supplies an object containing data to be used by the method the thread executes.</summary>
385 <param name="parameter">An object that contains data to be used by the method the thread executes.</param>
386 <exception cref="T:System.Threading.ThreadStateException">The thread has already been started.</exception>
387 <exception cref="T:System.OutOfMemoryException">There is not enough memory available to start this thread.</exception>
388 <exception cref="T:System.InvalidOperationException">This thread was created using a <see cref="System.Threading.ThreadStart"></see> delegate instead of a <see cref="System.Threading.ParameterizedThreadStart"></see> delegate.</exception>
390 <member name="M:System.Threading.Thread.Suspend">
391 <summary>Either suspends the thread, or if the thread is already suspended, has no effect.</summary>
392 <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
393 <exception cref="T:System.Threading.ThreadStateException">The thread has not been started or is dead.</exception>
394 <exception cref="T:System.Security.SecurityException">The caller does not have the appropriate <see cref="System.Security.Permissions.SecurityPermission"></see>.</exception>
396 <member name="P:System.Threading.Thread.ThreadState">
397 <summary>Gets a value containing the states of the current thread.</summary>
398 <returns>One of the <see cref="T:System.Threading.ThreadState"></see> values indicating the state of the current thread. The initial value is <see langword="Unstarted"></see>.</returns>
400 <member name="M:System.Threading.Thread.TrySetApartmentState(System.Threading.ApartmentState)">
401 <summary>Sets the apartment state of a thread before it is started.</summary>
402 <param name="state">The new apartment state.</param>
403 <returns><see langword="true"></see> if the apartment state is set; otherwise, <see langword="false"></see>.</returns>
404 <exception cref="T:System.ArgumentException"><paramref name="state">state</paramref> is not a valid apartment state.</exception>
405 <exception cref="T:System.Threading.ThreadStateException">The thread has already been started.</exception>
407 <member name="M:System.Threading.Thread.VolatileRead(System.SByte@)">
408 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
409 <param name="address">The field to be read.</param>
410 <returns>The latest value written to the field by any processor.</returns>
412 <member name="M:System.Threading.Thread.VolatileRead(System.Single@)">
413 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
414 <param name="address">The field to be read.</param>
415 <returns>The latest value written to the field by any processor.</returns>
417 <member name="M:System.Threading.Thread.VolatileRead(System.UIntPtr@)">
418 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
419 <param name="address">The field to be read.</param>
420 <returns>The latest value written to the field by any processor.</returns>
422 <member name="M:System.Threading.Thread.VolatileRead(System.UInt32@)">
423 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
424 <param name="address">The field to be read.</param>
425 <returns>The latest value written to the field by any processor.</returns>
427 <member name="M:System.Threading.Thread.VolatileRead(System.UInt64@)">
428 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
429 <param name="address">The field to be read.</param>
430 <returns>The latest value written to the field by any processor.</returns>
432 <member name="M:System.Threading.Thread.VolatileRead(System.Object@)">
433 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
434 <param name="address">The field to be read.</param>
435 <returns>The latest value written to the field by any processor.</returns>
437 <member name="M:System.Threading.Thread.VolatileRead(System.UInt16@)">
438 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
439 <param name="address">The field to be read.</param>
440 <returns>The latest value written to the field by any processor.</returns>
442 <member name="M:System.Threading.Thread.VolatileRead(System.Int64@)">
443 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
444 <param name="address">The field to be read.</param>
445 <returns>The latest value written to the field by any processor.</returns>
447 <member name="M:System.Threading.Thread.VolatileRead(System.IntPtr@)">
448 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
449 <param name="address">The field to be read.</param>
450 <returns>The latest value written to the field by any processor.</returns>
452 <member name="M:System.Threading.Thread.VolatileRead(System.Int16@)">
453 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
454 <param name="address">The field to be read.</param>
455 <returns>The latest value written to the field by any processor.</returns>
457 <member name="M:System.Threading.Thread.VolatileRead(System.Double@)">
458 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
459 <param name="address">The field to be read.</param>
460 <returns>The latest value written to the field by any processor.</returns>
462 <member name="M:System.Threading.Thread.VolatileRead(System.Byte@)">
463 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
464 <param name="address">The field to be read.</param>
465 <returns>The latest value written to the field by any processor.</returns>
467 <member name="M:System.Threading.Thread.VolatileRead(System.Int32@)">
468 <summary>Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.</summary>
469 <param name="address">The field to be read.</param>
470 <returns>The latest value written to the field by any processor.</returns>
472 <member name="M:System.Threading.Thread.VolatileWrite(System.UIntPtr@,System.UIntPtr)">
473 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
474 <param name="address">The field to which the value is to be written.</param>
475 <param name="value">The value to be written.</param>
477 <member name="M:System.Threading.Thread.VolatileWrite(System.UInt64@,System.UInt64)">
478 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
479 <param name="address">The field to which the value is to be written.</param>
480 <param name="value">The value to be written.</param>
482 <member name="M:System.Threading.Thread.VolatileWrite(System.UInt32@,System.UInt32)">
483 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
484 <param name="address">The field to which the value is to be written.</param>
485 <param name="value">The value to be written.</param>
487 <member name="M:System.Threading.Thread.VolatileWrite(System.UInt16@,System.UInt16)">
488 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
489 <param name="address">The field to which the value is to be written.</param>
490 <param name="value">The value to be written.</param>
492 <member name="M:System.Threading.Thread.VolatileWrite(System.Single@,System.Single)">
493 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
494 <param name="address">The field to which the value is to be written.</param>
495 <param name="value">The value to be written.</param>
497 <member name="M:System.Threading.Thread.VolatileWrite(System.SByte@,System.SByte)">
498 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
499 <param name="address">The field to which the value is to be written.</param>
500 <param name="value">The value to be written.</param>
502 <member name="M:System.Threading.Thread.VolatileWrite(System.Object@,System.Object)">
503 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
504 <param name="address">The field to which the value is to be written.</param>
505 <param name="value">The value to be written.</param>
507 <member name="M:System.Threading.Thread.VolatileWrite(System.IntPtr@,System.IntPtr)">
508 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
509 <param name="address">The field to which the value is to be written.</param>
510 <param name="value">The value to be written.</param>
512 <member name="M:System.Threading.Thread.VolatileWrite(System.Int16@,System.Int16)">
513 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
514 <param name="address">The field to which the value is to be written.</param>
515 <param name="value">The value to be written.</param>
517 <member name="M:System.Threading.Thread.VolatileWrite(System.Int32@,System.Int32)">
518 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
519 <param name="address">The field to which the value is to be written.</param>
520 <param name="value">The value to be written.</param>
522 <member name="M:System.Threading.Thread.VolatileWrite(System.Double@,System.Double)">
523 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
524 <param name="address">The field to which the value is to be written.</param>
525 <param name="value">The value to be written.</param>
527 <member name="M:System.Threading.Thread.VolatileWrite(System.Byte@,System.Byte)">
528 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
529 <param name="address">The field to which the value is to be written.</param>
530 <param name="value">The value to be written.</param>
532 <member name="M:System.Threading.Thread.VolatileWrite(System.Int64@,System.Int64)">
533 <summary>Writes a value to a field immediately, so that the value is visible to all processors in the computer.</summary>
534 <param name="address">The field to which the value is to be written.</param>
535 <param name="value">The value to be written.</param>
537 <member name="M:System.Threading.Thread.Yield">
538 <summary>Causes the calling thread to yield execution to another thread that is ready to run on the current processor. The operating system selects the thread to yield to.</summary>
539 <returns><see langword="true"></see> if the operating system switched execution to another thread; otherwise, <see langword="false"></see>.</returns>
541 <member name="T:System.Threading.ParameterizedThreadStart">
542 <summary>Represents the method that executes on a <see cref="T:System.Threading.Thread"></see>.</summary>
543 <param name="obj">An object that contains data for the thread procedure.</param>
545 <member name="T:System.Threading.CompressedStack">
546 <summary>Provides methods for setting and capturing the compressed stack on the current thread. This class cannot be inherited.</summary>
548 <member name="M:System.Threading.CompressedStack.Capture">
549 <summary>Captures the compressed stack from the current thread.</summary>
550 <returns>A <see cref="T:System.Threading.CompressedStack"></see> object.</returns>
552 <member name="M:System.Threading.CompressedStack.CreateCopy">
553 <summary>Creates a copy of the current compressed stack.</summary>
554 <returns>A <see cref="T:System.Threading.CompressedStack"></see> object representing the current compressed stack.</returns>
556 <member name="M:System.Threading.CompressedStack.GetCompressedStack">
557 <summary>Gets the compressed stack for the current thread.</summary>
558 <returns>A <see cref="T:System.Threading.CompressedStack"></see> for the current thread.</returns>
559 <exception cref="T:System.Security.SecurityException">A caller in the call chain does not have permission to access unmanaged code.
561 The request for <see cref="System.Security.Permissions.StrongNameIdentityPermission"></see> failed.</exception>
563 <member name="M:System.Threading.CompressedStack.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
564 <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object with the logical context information needed to recreate an instance of this execution context.</summary>
565 <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object to be populated with serialization information.</param>
566 <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> structure representing the destination context of the serialization.</param>
567 <exception cref="T:System.ArgumentNullException"><paramref name="info">info</paramref> is <see langword="null"></see>.</exception>
569 <member name="M:System.Threading.CompressedStack.Run(System.Threading.CompressedStack,System.Threading.ContextCallback,System.Object)">
570 <summary>Runs a method in the specified compressed stack on the current thread.</summary>
571 <param name="compressedStack">The <see cref="T:System.Threading.CompressedStack"></see> to set.</param>
572 <param name="callback">A <see cref="T:System.Threading.ContextCallback"></see> that represents the method to be run in the specified security context.</param>
573 <param name="state">The object to be passed to the callback method.</param>
574 <exception cref="T:System.ArgumentException"><paramref name="compressedStack">compressedStack</paramref> is <see langword="null"></see>.</exception>
576 <member name="T:System.Threading.ApartmentState">
577 <summary>Specifies the apartment state of a <see cref="T:System.Threading.Thread"></see>.</summary>
579 <member name="F:System.Threading.ApartmentState.MTA">
580 <summary>The <see cref="T:System.Threading.Thread"></see> will create and enter a multithreaded apartment.</summary>
583 <member name="F:System.Threading.ApartmentState.STA">
584 <summary>The <see cref="T:System.Threading.Thread"></see> will create and enter a single-threaded apartment.</summary>
587 <member name="F:System.Threading.ApartmentState.Unknown">
588 <summary>The <see cref="P:System.Threading.Thread.ApartmentState"></see> property has not been set.</summary>
591 <member name="T:System.LocalDataStoreSlot">
592 <summary>Encapsulates a memory slot to store local data. This class cannot be inherited.</summary>
594 <member name="M:System.LocalDataStoreSlot.Finalize">
595 <summary>Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the <see cref="T:System.LocalDataStoreSlot"></see> object.</summary>