August 2003
Intermediate to advanced
928 pages
32h 1m
English
ObjectDisposedException
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(stringobjectName); public ObjectDisposedException(stringobjectName, stringmessage); // Protected Constructors protected ObjectDisposedException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); // Public Instance Properties public override string Message{get; } // overrides Exception public string ObjectName{get; } // Public Instance Methods public override void GetObjectData(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext) // overrides Exception }
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
InvalidOperationException
→
ObjectDisposedException