SALES: 1-800-867-1380
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)


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


Type: System.String

The name of the disposed object.

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 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft