XmlValidatingEventArgs::ReportError method
Office 2013 and later
Creates a FormError object that contains custom error information and adds it to the FormErrorCollection object of the form.
| Name | Description | |
|---|---|---|
|
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. |
|
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. |
|
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. |
|
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. |
The ReportError method is used to create a custom error for an error that occurred during the Validating event.
Show: