Windows apps
Collapse the table of content
Expand the table of content
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^)

 

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:
© 2017 Microsoft