Share via


XmlValidatingEventArgs.ReportError Method

Include Protected Members
Include Inherited Members

Creates a FormError object that contains custom error information and adds it to the FormErrorCollection object of the form.

Overload List

  Name Description
Public method ReportError(XPathNavigator, Boolean, String) Creates a FormError object that contains custom error information with the specified values and adds it to the FormErrorCollection object of the form.
Public method ReportError(XPathNavigator, Boolean, String, String) Creates a FormError object that contains custom error information with the specified values and adds it to the FormErrorCollection object of the form.
Public method ReportError(XPathNavigator, Boolean, String, String, Int32) Creates a FormError object that contains custom error information with the specified values and adds it to the FormErrorCollection object of the form.
Public method ReportError(XPathNavigator, Boolean, String, String, Int32, ErrorMode) Creates a FormError object that contains custom error information with the specified values and adds it to the FormErrorCollection object of the form.

Top

Remarks

The ReportError method is used to create a custom error for an error that occurred during the Validating event.

See Also

Reference

XmlValidatingEventArgs Class

XmlValidatingEventArgs Members

Microsoft.Office.InfoPath Namespace