Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Enumeration FormErrorType
'Usage
Dim instance As FormErrorType
public enum FormErrorType
Members
| 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. |
Remarks
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.