XmlValidatingEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for the Validating event of a field or group.
public ref class XmlValidatingEventArgs abstract : Microsoft::Office::InfoPath::XmlEventArgs
public abstract class XmlValidatingEventArgs : Microsoft.Office.InfoPath.XmlEventArgs
type XmlValidatingEventArgs = class
inherit XmlEventArgs
Public MustInherit Class XmlValidatingEventArgs
Inherits XmlEventArgs
- Inheritance
Remarks
The XmlValidatingEventArgs object is passed to the event handler for the Validating event, which occurs after changes to a form's underlying XML document have been accepted but before the Changed event has occurred.
The XmlValidatingEventArgs class is derived from the XmlEventArgs class which provides properties that can be used within the event handler to get information about the data that is being validated in the form's underlying XML document and about the node that is being validated. For example, the XmlEventArgs object provides the Site property which gets a reference to an XPathNavigator object that points to the node being validated in the form's underlying XML document. However, note that the underlying XML document is read-only during the Validating event.
In addition to these properties, the XmlValidatingEventArgs class provides the overloaded ReportError method for adding errors to the FormErrorCollection of the form, and to specify custom error information for errors that occur during the Validating event.
The overloaded ReportError method of the XmlValidatingEventArgs class corresponds to the ReportError method of the DataDOMEvent interface in the Microsoft Office InfoPath 2003 managed code object model.
Constructors
XmlValidatingEventArgs() |
Properties
Match |
Gets an XPathExpression object which contains an XPath expression that returns the node that is currently being changed. (Inherited from XmlEventArgs) |
NewValue |
Gets the new value for the node being changed. (Inherited from XmlEventArgs) |
OldParent |
Gets an XPathNavigator object pointing to the node which is the parent of the node being deleted. (Inherited from XmlEventArgs) |
OldValue |
Gets the original value of the node that is being changed. (Inherited from XmlEventArgs) |
Operation |
Gets an XmlOperation enumeration that indicates the type of operation that occurred when the node was changed. (Inherited from XmlEventArgs) |
Site |
Gets an XPathNavigator object pointing at the node that is being changed. (Inherited from XmlEventArgs) |
UndoRedo |
Gets a value that indicates whether the node being changed is part of an undo or redo operation. (Inherited from XmlEventArgs) |
Methods
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. |
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) |
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) |
Creates a FormError object that contains custom error information with the specified values and adds it to the FormErrorCollection object of the form. |