ObjectDisposedException

ObjectDisposedException CF 1.0, ECMA 1.0, serializable

System (mscorlib.dll) class

This exception is thrown when certain operations are performed on an object that has been disposed. For example, trying to read from an I/O stream that has been closed by the System.IO.Stream.Close( ) method should raise this exception.

 public class  ObjectDisposedException  : InvalidOperationException {  // Public Constructors  public  ObjectDisposedException  (string   objectName   );    public  ObjectDisposedException  (string   objectName   , string   message   );  // Protected Constructors  protected  ObjectDisposedException  (System.Runtime.Serialization.SerializationInfo   info   ,         System.Runtime.Serialization.StreamingContext   context   );  // Public Instance Properties  public override string  Message  {get; }  // overrides Exception  public string  ObjectName  {get; }  // Public Instance Methods  public override void  GetObjectData  (System.Runtime.Serialization.SerializationInfo   info   ,         System.Runtime.Serialization.StreamingContext   context   )  // overrides Exception  } 

Hierarchy

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



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