ObjectDisposedException Constructor (String^, String^)
.NET Framework (current version)
Initializes a new instance of the ObjectDisposedException class with the specified object name and message.
Assembly: mscorlib (in mscorlib.dll)
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
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
Show: