InvalidOperationException

InvalidOperationException CF 1.0, ECMA 1.0, serializable

System (mscorlib.dll) class

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  (string   message   );    public  InvalidOperationException  (string   message   , Exception   innerException   );  // Protected Constructors  protected  InvalidOperationException  (System.Runtime.Serialization.SerializationInfo   info   ,         System.Runtime.Serialization.StreamingContext   context   ); } 

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException InvalidOperationException

Subclasses

ObjectDisposedException , System.Net.{ProtocolViolationException , WebException}



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net