class ObjectDisposedException

in global :: System

The exception that is thrown when an operation is performed on a disposed object.


public ObjectDisposedException( string objectName )

Initializes a new instance of the class with a string containing the name of the disposed object.

  • objectName A string containing the name of the disposed object.

public ObjectDisposedException( string message, Exception innerException )

Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.

  • message The error message that explains the reason for the exception.
  • innerException The exception that is the cause of the current exception. If is not , the current exception is raised in a block that handles the inner exception.

public ObjectDisposedException( string objectName, string message )

Initializes a new instance of the class with the specified object name and message.

  • objectName The name of the disposed object.
  • message The error message that explains the reason for the exception.

public void GetObjectData( SerializationInfo info, StreamingContext context )

Retrieves the object with the parameter name and additional exception information.

  • info The that holds the serialized object data about the exception being thrown.
  • context The that contains contextual information about the source or destination.

public string Message { get; }

Gets the message that describes the error.

  • Returns A string that describes the error.

public string ObjectName { get; }

Gets the name of the disposed object.

  • Returns A string containing the name of the disposed object.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string StackTrace { get; }

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string Source { get; set; }

😔 No documentation found.

public string ToString( )

😔 No documentation found.

😔 No documentation found.

public Exception InnerException { get; }

😔 No documentation found.

public Exception GetBaseException( )

😔 No documentation found.

public IDictionary Data { get; }

😔 No documentation found.

public static void ThrowIf( bool condition, Type type )

😔 No documentation found.

public int HResult { get; set; }

😔 No documentation found.

public static void ThrowIf( bool condition, object instance )

😔 No documentation found.