ObjectDisposedException.Message ObjectDisposedException.Message ObjectDisposedException.Message ObjectDisposedException.Message Property

定义

获取描述错误的消息。Gets the message that describes the error.

public:
 virtual property System::String ^ Message { System::String ^ get(); };
public override string Message { get; }
member this.Message : string
Public Overrides ReadOnly Property Message As String

属性值

描述错误的字符串。A string that describes the error.

注解

如果ObjectName属性不是null,该消息包含的对象的名称。If the ObjectName property is not null, the message includes the name of the object.

此属性将替代Exception.MessageThis property overrides Exception.Message.

适用于