Export (0) Print
Expand All

XmlValidatingEventArgs.ReportError Method

Office 2010

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

  NameDescription
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

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

Community Additions

ADD
Show:
© 2014 Microsoft