ObjectDisposedException Constructor (String)

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

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public ObjectDisposedException (
         string message
)

Parameters

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

Remarks

The Message property is initialized to a system-supplied message that describes the error and includes the objectName parameter. This message takes into account the current system culture.

The InnerException property of the new instance is initialized to null.

If objectName is null, the Message property contains only an error message.

Version Information

Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

ObjectDisposedException Class
ObjectDisposedException Members
System Namespace