(Read only) Gets a message that describes the current exception.
Syntax
Visual Basic (Declaration) | |
---|
Overrides Public ReadOnly Property Message As String |
C# | |
---|
public override string Message {get;} |
Managed Extensions for C++ | |
---|
public: __property string* get_Message()override ; |
C++/CLI | |
---|
public:
property String^ Message override {
String^ get();
} |
Return Value
The error message that explains the reason for the exception, or an empty string("").
Example
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also