_Exception.Message 属性

定义

为 COM 对象提供对 Message 属性的与版本无关的访问。Provides COM objects with version-independent access to the Message property.

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

属性值

说明异常原因的错误消息,或一个空字符串 ("")。The error message that explains the reason for the exception, or an empty string("").

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code and should not be called from managed code.

@No__t-0 属性获取描述当前异常的消息。The Exception.Message property gets a message that describes the current exception.

适用于

另请参阅