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