March 2002
Intermediate to advanced
864 pages
31h 8m
English
ThreadStateException
This exception is thrown when an invalid method is called on a thread. For
example, once a thread has started, it cannot re-enter
the ThreadState.Unstarted state. Therefore, an
attempt to call Thread.Start() on that thread throws this exception.
public class ThreadStateException : SystemException { // Public Constructors public method ThreadStateException(); public method ThreadStateException(string message); public method ThreadStateException(string message, Exception innerException); // Protected Constructors protected method ThreadStateException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context); }
System.Object→System.Exception(System.Runtime.Serialization.ISerializable)→System.SystemException→ThreadStateException