Thread Class

[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.

System..::..Object
  System.Threading..::..Thread

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

[<Sealed>]
type Thread =  class end

The Thread type exposes the following members.

  NameDescription
Public methodThreadInitializes a new instance of the Thread class.
Top

  NameDescription
Public propertyStatic memberCurrentThreadGets the currently running thread.
Public propertyIsAliveGets a value indicating the execution status of the current thread.
Public propertyManagedThreadIdGets a unique identifier for the current managed thread.
Public propertyPriorityGets or sets a value indicating the scheduling priority of a thread.
Public propertyThreadStateGets a value containing the states of the current thread.
Top

  NameDescription
Public methodAbortRaises 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.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberGetDomainReturns the current domain in which the current thread is running.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodJoin()()()()Blocks the calling thread until a thread terminates, while continuing to perform standard COM and SendMessage pumping.
Public methodJoin(Int32)Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.
Public methodJoin(TimeSpan)Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.
Public methodResumeResumes a thread that has been suspended.
Public methodStatic memberSleepSuspends the current thread for a specified time.
Public methodStartCauses the operating system to change the state of the current instance to ThreadState..::..Running.
Public methodSuspendEither suspends the thread, or if the thread is already suspended, has no effect.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: