This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Thread Methods
The methods of the Thread class are listed below. For a complete list of Thread class members, see the Thread Members topic.
Public:
Abort |
Overloaded. Raises a ThreadAbortException in the thread, which usually results in the thread's death. |
AllocateDataSlot |
Allocates an unnamed data slot on all the threads. |
AllocateNamedDataSlot |
Allocates a named data slot on all of the threads. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
FreeNamedDataSlot |
Frees a previously allocated named data slot. |
GetData |
Retrieves the value from the specified slot on the current thread. |
GetDomain |
Returns the current domain in which the current thread is running. Get and set work on the hard thread not the logical thread. For that reason they are package protected and should not be available for general consumption. |
GetDomainID |
[To be supplied.] |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetNamedDataSlot |
Looks up a named data slot. |
GetType (inherited from Object) |
Gets the Type of the Object. |
Interrupt |
Interrupts a thread that is in the WaitSleepJoin thread state. |
Join |
Overloaded. Waits for a thread. |
ResetAbort |
Resets a Abort. |
Resume |
Resumes a thread that has been suspended. |
SetData |
Sets the data in the specified slot on the currently running thread. |
Sleep |
Overloaded. Suspends the current thread for a specified time. |
Start |
Begins execution at the ThreadStart that was supplied at construction. |
Stop |
Raises a ThreadStopException in the thread, which results in the thread's death unless the thread catches and ignores the exception. |
Suspend |
Either suspends the thread, or if the thread is already suspended, has no effect. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Finalize |
Invoked when the garbage collector (GC) determines that the current object is not being referenced by any other object. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
Thread Class | System.Threading Namespace