Share via


Error.ShortErrorMessage property

Gets or sets the short 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 ShortErrorMessage As String
    Get
    Set
'Usage
Dim instance As Error
Dim value As String

value = instance.ShortErrorMessage

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

Property value

Type: System.String

Remarks

The short error message is the ToolTip that users view when data validation fails in their forms.

Examples

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

See also

Reference

Error interface

Error members

Microsoft.Office.Interop.InfoPath namespace