Share via


Error.ShortErrorMessage property

Gets or sets the short 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 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.

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

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.SemiTrust namespace