| |||||
Exception.Message PropertySystem Namespace Exception Class Returns a message that describes the current exception. [ VB ] <Serializable> <ClassInterface ( ClassInterfaceType.AutoDual ) > Overridable Public ReadOnly Property Message As String [ C# ] [ Serializable ] [ ClassInterface ( ClassInterfaceType.AutoDual ) ] public virtual string Message {get;} [ C++ ] [ Serializable ] [ ClassInterface ( ClassInterfaceType.AutoDual ) ] public: __property virtual String* get_Message ( ); [ JScript ] public Serializable ClassInterface ( ClassInterfaceType.AutoDual ) function get Message ( ) : String; Property ValueThe error message that explains the reason for the exception, or an empty string ( "" ).. RemarksThe text of Message should completely describe the error and should, when possible, explain how to correct it. The value of the Message property is included in the information returned by ToString. The Message property is set only when creating an Exception. If no message was supplied to the constructor for the current instance, the system supplies a default message that is formatted using the current system culture. Notes to Inheritors: The Message property is overridden in classes that require control over message content or format. Application code typically accesses this property when it needs to display information about an exception that has been caught. The error message should be localized. See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme