Thread Methods
Collapse the table of content
Expand the table of content

Thread Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Thread type exposes the following members.

  NameDescription
Public method Abort Security Critical. 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.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetDomain Returns the current domain in which the current thread is running.
Public method GetHashCode Returns a hash code for the current thread. (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Join Blocks the calling thread until a thread terminates, while continuing to perform standard COM and SendMessage pumping.
Public method Join(Int32) Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member MemoryBarrier Ensures that memory accesses that appear before the call to MemoryBarrier, in program order, will not execute after the call to MemoryBarrier, and that memory accesses that appear after the call to MemoryBarrier will not execute before that call.
Public method Static member Sleep(Int32) Suspends the current thread for a specified time.
Public method Static member Sleep(TimeSpan) Blocks the current thread for a specified time.
Public method Static member SpinWait Causes a thread to wait the number of times defined by the iterations parameter.
Public method Start Causes the operating system to change the state of the current instance to ThreadState.Running.
Public method Start(Object) Causes the operating system to change the state of the current instance to ThreadState.Running, and optionally supplies an object containing data to be used by the method that the thread executes.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2017 Microsoft