FormErrorType enumeration
Office 2013 and later
Specifies the error type of a FormError object in the FormErrorCollection of an InfoPath form.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
| Member name | Description | |
|---|---|---|
| SchemaValidation | Data validation failed as a result of an XML Schema-defined constraint. | |
| SystemGenerated | Data validation failed as a result of constraints defined in the form definition (.xsf) file or as a result of form code calling the ReportError() method of the XmlValidatingEventArgs class. | |
| UserDefined | Data validation failed as a result of a custom error defined using the Add method of the FormErrorsCollection class. |
The three types of data validation errors that can occur in an InfoPath form can be determined using the FormErrorType property of the FormError class, which returns a FormErrorType enumeration value.
Show: