Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ObjectDisposedException Constructor (String, String)

.NET Framework 1.1

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

[Visual Basic]
Public Sub New( _
   ByVal objectName As String, _
   ByVal message As String _
public ObjectDisposedException(
   string objectName,
 string message
public: ObjectDisposedException(
   String* objectName,
 String* message
public function ObjectDisposedException(
   objectName : String,
 message : String


The name of the disposed object.
The error message that explains the reason for the exception.


The InnerException property of the new instance is initialized to a null reference (Nothing in Visual Basic).

If objectName is a null reference (Nothing), the Message property contains only an error message.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

ObjectDisposedException Class | ObjectDisposedException Members | System Namespace | ObjectDisposedException Constructor Overload List

© 2015 Microsoft