Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates and controls a thread, sets its priority, and gets its status.
Inheritance Hierarchy
System. . :: . .Object
System.Threading..::..Thread
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public NotInheritable Class Thread
public sealed class Thread
public ref class Thread sealed
[<Sealed>]
type Thread = class end
public final class Thread
The Thread type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
Thread | Initializes a new instance of the Thread class. |
Top
Properties
Name | Description | |
---|---|---|
![]() ![]() |
CurrentThread | Gets the currently running thread. |
![]() |
IsAlive | Gets a value indicating the execution status of the current thread. |
![]() |
ManagedThreadId | Gets a unique identifier for the current managed thread. |
![]() |
Priority | Gets or sets a value indicating the scheduling priority of a thread. |
![]() |
ThreadState | Gets a value containing the states of the current thread. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Abort | Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread. |
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() |
GetDomain | Returns the current ___domain in which the current thread is running. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Join() () () () | Blocks the calling thread until a thread terminates, while continuing to perform standard COM and SendMessage pumping. |
![]() |
Join(Int32) | Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping. |
![]() |
Join(TimeSpan) | Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping. |
![]() |
Resume | Resumes a thread that has been suspended. |
![]() ![]() |
Sleep | Suspends the current thread for a specified time. |
![]() |
Start | Causes the operating system to change the state of the current instance to ThreadState..::..Running. |
![]() |
Suspend | Either suspends the thread, or if the thread is already suspended, has no effect. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.