NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ThreadStopException Class

Represents an exception that is thrown into a thread to cause it to stop.

Object
   Exception
      SystemException
         ThreadStopException

[Visual Basic]
NotInheritable Public Class ThreadStopException
   Inherits SystemException
[C#]
public sealed class ThreadStopException : SystemException
[C++]
public __gc __sealed class ThreadStopException : public
   SystemException
[JScript]
public class ThreadStopException extends SystemException

Remarks

Typically, the ThreadStopException is an exception that is not caught, and the thread dies as a result. All of its members are private.

This is thrown by the virtual machine and should NOT be thrown by any user thread. It is useless to subclass this.

When handling an exception, it is sometimes helpful to have a reference to the exception(s) that caused the error to occur. You can use this constructor to create a chain of new and more meaningful exceptions with the InnerException property set to the inner exception reference. This more meaningful exception can then be thrown to the caller. Note that with this functionality it is possible to create a series of linked exceptions that terminates with the exception that was first thrown. (See Exception for more information.)

ThreadStopException inherits from the Exception class. The properties of the Exception object as follows:

Property Type Condition
InnerException a null reference (in Visual Basic Nothing).
Message The empty string.

Requirements

Namespace: System.Threading

Assembly: mscorlib.dll

See Also

ThreadStopException Members | System.Threading Namespace