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

© 2017 Microsoft