Message Property

_Exception.Message Property


Provides COM objects with version-independent access to the Exception.Message property.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

string Message { get; }

Property Value

Type: System.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.

The Exception.Message property gets a message that describes the current exception.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft