Export (0) Print
Expand All

XmlValidatingEventArgs.ReportError method

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

  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

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

Show:
© 2014 Microsoft