Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ObjectName Property
Collapse the table of content
Expand the table of content

ObjectDisposedException.ObjectName Property

Gets the name of the disposed object.

[Visual Basic]
Public ReadOnly Property ObjectName As String
public string ObjectName {get;}
public: __property String* get_ObjectName();
public function get ObjectName() : String;

Property Value

A string containing the name of the disposed object.


If the current property is not a null reference (Nothing in Visual Basic) or String.Empty, the value of this property is included in the string returned by the Message property.


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

© 2015 Microsoft