Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

FormErrorType Enumeration

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)

public enum FormErrorType

Member nameDescription
SchemaValidationData validation failed as a result of an XML Schema-defined constraint.
SystemGeneratedData 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.
UserDefinedData 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.

© 2015 Microsoft