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.

Show:
© 2014 Microsoft