Export (0) Print
Expand All

Thread Members

Creates and controls a thread, sets its priority, and gets its status.

The following tables list the members exposed by the Thread type.

  Name Description
Public method Supported by the .NET Compact Framework Thread Overloaded. Initializes a new instance of the Thread class.
Top

  Name Description
Public property ApartmentState Gets or sets the apartment state of this thread.
Public property Static CurrentContext Gets the current context in which the thread is executing.
Public property CurrentCulture Gets or sets the culture for the current thread.
Public property Static CurrentPrincipal Gets or sets the thread's current principal (for role-based security).
Public property Static Supported by the .NET Compact Framework CurrentThread Gets the currently running thread.
Public property CurrentUICulture Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.
Public property ExecutionContext Gets an ExecutionContext object that contains information about the various contexts of the current thread.
Public property IsAlive Gets a value indicating the execution status of the current thread.
Public property Supported by the .NET Compact Framework IsBackground Gets or sets a value indicating whether or not a thread is a background thread.
Public property IsThreadPoolThread Gets a value indicating whether or not a thread belongs to the managed thread pool.
Public property Supported by the .NET Compact Framework ManagedThreadId Gets a unique identifier for the current managed thread.
Public property Supported by the .NET Compact Framework Name Gets or sets the name of the thread.
Public property Supported by the .NET Compact Framework Priority Gets or sets a value indicating the scheduling priority of a thread.
Public property ThreadState Gets a value containing the states of the current thread.
Top

  Name Description
Public method Supported by the .NET Compact Framework Abort 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 method Static Supported by the .NET Compact Framework AllocateDataSlot Allocates an unnamed data slot on all the threads.
Public method Static Supported by the .NET Compact Framework AllocateNamedDataSlot Allocates a named data slot on all threads.
Public method Static BeginCriticalRegion Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception might jeopardize other tasks in the application domain.
Public method Static BeginThreadAffinity Notifies a host that managed code is about to execute instructions that depend on the identity of the current physical operating system thread.
Public method Static EndCriticalRegion Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception are limited to the current task.
Public method Static EndThreadAffinity Notifies a host that managed code has finished executing instructions that depend on the identity of the current physical operating system thread.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework FreeNamedDataSlot Eliminates the association between a name and a slot, for all threads in the process.
Public method GetApartmentState Returns an ApartmentState value indicating the apartment state.
Public method GetCompressedStack Returns a CompressedStack object that can be used to capture the stack for the current thread.
Public method Static Supported by the .NET Compact Framework GetData Retrieves the value from the specified slot on the current thread, within the current thread's current domain.
Public method Static Supported by the .NET Compact Framework GetDomain Returns the current domain in which the current thread is running.
Public method Static GetDomainID Returns a unique application domain identifier.
Public method GetHashCode Overridden. Returns a hash code for the current thread.
Public method Static Supported by the .NET Compact Framework GetNamedDataSlot Looks up a named data slot.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Interrupt Interrupts a thread that is in the WaitSleepJoin thread state.
Public method Supported by the .NET Compact Framework Join Overloaded. Blocks the calling thread until a thread terminates.
Public method Static MemoryBarrier Synchronizes memory. In effect, flushes the contents of cache memory to main memory, for the processor executing the current thread.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Static ResetAbort Cancels an Abort requested for the current thread.
Public method Resume Resumes a thread that has been suspended.
Public method SetApartmentState Sets the apartment state of a thread before it is started.
Public method SetCompressedStack Applies a captured CompressedStack to the current thread.
Public method Static Supported by the .NET Compact Framework SetData Sets the data in the specified slot on the currently running thread, for that thread's current domain.
Public method Static Supported by the .NET Compact Framework Sleep Overloaded. Blocks the current thread for the specified number of milliseconds.
Public method Static SpinWait Causes a thread to wait the number of times defined by the iterations parameter.
Public method Start Overloaded. Causes a thread to be scheduled for execution.
Public method Suspend Either suspends the thread, or if the thread is already suspended, has no effect.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (Inherited from Object.)
Public method TrySetApartmentState Sets the apartment state of a thread before it is started.
Public method Static 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 method Static VolatileWrite Overloaded. Writes a value to a field immediately, so that the value is visible to all processors in the computer.
Top

  Name Description
Explicit interface implementation Method System.Runtime.InteropServices._Thread.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implementation Method System.Runtime.InteropServices._Thread.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implementation Method System.Runtime.InteropServices._Thread.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implementation Method System.Runtime.InteropServices._Thread.Invoke Provides access to properties and methods exposed by an object.
Top

Community Additions

ADD
Show:
© 2014 Microsoft