Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

FormError.FormErrorType Property (Microsoft.Office.InfoPath)

Gets the type of the FormError object.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
public abstract FormErrorType FormErrorType { get; }

Property Value

A FormErrorType that specifies the type of error.

There are three types of data validation errors that can occur in an InfoPath form that can be determined using the FormErrorType property of the FormError class:

  • FormErrorType.SchemaValidation Data validation failed as a result of an XML Schema–defined constraint.

  • FormErrorType.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.

  • FormErrorType.UserSpecified Data validation failed as a result of a custom error defined using the Add method of the FormErrorsCollection class.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed from code running in forms opened in Microsoft Office InfoPath 2007 or in a Web browser.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.