ObjectDisposedException.Message 属性

定义

获取描述错误的消息。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

属性值

String

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

注解

如果未 nullObjectName 属性,则该消息将包括对象的名称。If the ObjectName property is not null, the message includes the name of the object.

此属性将重写 Exception.MessageThis property overrides Exception.Message.

适用于