Error.DetailedErrorMessage property

Gets or sets the detailed error message of an ErrorObject object.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Property DetailedErrorMessage As String
    Get
    Set
'Usage
Dim instance As Error
Dim value As String

value = instance.DetailedErrorMessage

instance.DetailedErrorMessage = value
string DetailedErrorMessage { get; set; }

Property value

Type: System.String

Remarks

The detailed error message is the longer error message that users can choose to view when data validation fails in their forms.

Examples

In the following example, the DetailedErrorMessage property of the ErrorObject object is used to display the detailed message of an error in a message box:

ErrorObject er = thisXDocument.Errors[0];
IXMLDOMNode myNode = er.Node;
thisXDocument.UI.Alert("this is the long: " + er.DetailedErrorMessage);

See also

Reference

Error interface

Error members

Microsoft.Office.Interop.InfoPath namespace