August 2003
Intermediate to advanced
928 pages
32h 1m
English
ThreadStateException
This exception is thrown when
an invalid method is called on
a thread. For example, once a thread has started, it cannot reenter
the ThreadState.Unstarted state. Therefore, an
attempt to call Thread.Start( ) on that thread
throws this exception.
public class ThreadStateException : SystemException { // Public Constructors public ThreadStateException( ); public ThreadStateException(stringmessage); public ThreadStateException(stringmessage, ExceptioninnerException); // Protected Constructors protected ThreadStateException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
ThreadStateException