Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ObjectDisposedException Constructor (String, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public ObjectDisposedException(
	string objectName,
	string message
)

Parameters

objectName
Type: System.String

The name of the disposed object.

message
Type: System.String

The error message that explains the reason for the exception.

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: