August 2003
Intermediate to advanced
928 pages
32h 1m
English
InvalidOperationException
This exception indicates that a user
attempted to use a method when the
object was not in an appropriate state. For example, this exception
is thrown if you attempt to write data with a
System.Xml.XmlTextWriter that is already closed.
public class InvalidOperationException : SystemException { // Public Constructors public InvalidOperationException( ); public InvalidOperationException(stringmessage); public InvalidOperationException(stringmessage, ExceptioninnerException); // Protected Constructors protected InvalidOperationException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
InvalidOperationException
ObjectDisposedException,
System.Net.{ProtocolViolationException,
WebException}