Name
ThreadStateException
Synopsis
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); }
Hierarchy
System.Object→System.Exception(System.Runtime.Serialization.ISerializable)→System.SystemException→ThreadStateException
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.