Export (0) Print
Expand All

Thread Members

Thread overview

Public Constructors

public constructorThread Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the Thread class.

Public Properties

public propertyApartmentState Gets or sets the apartment state of this thread.
public propertystatic (Shared in Visual Basic)CurrentContext Gets the current context in which the thread is executing.
public propertyCurrentCulture Gets or sets the culture for the current thread.
public propertystatic (Shared in Visual Basic)CurrentPrincipal Gets or sets the thread's current principal (for role-based security).
public propertystatic (Shared in Visual Basic)CurrentThread

Supported by the .NET Compact Framework.

Gets the currently running thread.
public propertyCurrentUICulture Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.
public propertyIsAlive Gets a value indicating the execution status of the current thread.
public propertyIsBackground Gets or sets a value indicating whether or not a thread is a background thread.
public propertyIsThreadPoolThread Gets a value indicating whether or not a thread belongs to the managed thread pool.
public propertyName Gets or sets the name of the thread.
public propertyPriority

Supported by the .NET Compact Framework.

Gets or sets a value indicating the scheduling priority of a thread.
public propertyThreadState Gets a value containing the states of the current thread.

Public Methods

public methodAbort Overloaded. 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 methodstatic (Shared in Visual Basic)AllocateDataSlot

Supported by the .NET Compact Framework.

Allocates an unnamed data slot on all the threads.
public methodstatic (Shared in Visual Basic)AllocateNamedDataSlot

Supported by the .NET Compact Framework.

Allocates a named data slot on all threads.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodstatic (Shared in Visual Basic)FreeNamedDataSlot

Supported by the .NET Compact Framework.

Eliminates the association between a name and a slot, for all threads in the process.
public methodstatic (Shared in Visual Basic)GetData

Supported by the .NET Compact Framework.

Retrieves the value from the specified slot on the current thread, within the current thread's current domain.
public methodstatic (Shared in Visual Basic)GetDomain Returns the current domain in which the current thread is running.
public methodstatic (Shared in Visual Basic)GetDomainID Returns a unique application domain identifier.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodstatic (Shared in Visual Basic)GetNamedDataSlot

Supported by the .NET Compact Framework.

Looks up a named data slot.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInterrupt Interrupts a thread that is in the WaitSleepJoin thread state.
public methodJoin Overloaded. Blocks the calling thread until a thread terminates.
public methodstatic (Shared in Visual Basic)MemoryBarrier Synchronizes memory. In effect, flushes the contents of cache memory to main memory, for the processor executing the current thread.
public methodstatic (Shared in Visual Basic)ResetAbort Cancels an Abort requested for the current thread.
public methodResume Resumes a thread that has been suspended.
public methodstatic (Shared in Visual Basic)SetData

Supported by the .NET Compact Framework.

Sets the data in the specified slot on the currently running thread, for that thread's current domain.
public methodstatic (Shared in Visual Basic)Sleep

Supported by the .NET Compact Framework.

Overloaded. Blocks the current thread for the specified number of milliseconds.
public methodstatic (Shared in Visual Basic)SpinWait Causes a thread to wait the number of times defined by the iterations parameter.
public methodStart

Supported by the .NET Compact Framework.

Causes the operating system to change the state of the current instance to ThreadState.Running.
public methodSuspend Either suspends the thread, or if the thread is already suspended, has no effect.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodstatic (Shared in Visual Basic)VolatileRead Overloaded. 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.
public methodstatic (Shared in Visual Basic)VolatileWrite Overloaded. Writes a value to a field immediately, so that the value is visible to all processors in the computer.

Protected Methods

protected methodFinalize

Supported by the .NET Compact Framework.

Overridden. Releases the resources held by this instance.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Thread Class | System.Threading Namespace

Show:
© 2014 Microsoft