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 _
)
[C#]
public ObjectDisposedException(
   string objectName,
 string message
);
[C++]
public: ObjectDisposedException(
   String* objectName,
 String* message
);
[JScript]
public function ObjectDisposedException(
   objectName : String,
 message : String
);

Parameters

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft