March 2002
Intermediate to advanced
864 pages
31h 8m
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 method InvalidOperationException(); public method InvalidOperationException(string message); public method InvalidOperationException(string message, Exception innerException); // Protected Constructors protected method InvalidOperationException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context); }
Object→Exception(System.Runtime.Serialization.ISerializable)→SystemException→InvalidOperationException
ObjectDisposedException, System.Net.{ProtocolViolationException, WebException}