Error.DetailedErrorMessage Property
Gets or sets the detailed error message of an ErrorObject object.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.
Important
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
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);