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
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ErrorMode Enumeration (Microsoft.Office.InfoPath)

Specifies whether the custom error will be displayed in a modal dialog box or in modeless context within the control that is the source of the error.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

public enum ErrorMode

 Member nameDescription
ModalThe user is notified of the error with a dialog box alert. After clicking OK in the dialog box alert, the error will appear as an inline alert and the user can choose to return to the previous value with an undo operation. 
ModelessThe user is notified of the error with an inline alert and can choose to return to the previous value with an undo operation. 

The ErrorMode enumeration is used to specify the mode in which to display a custom error when using the Add method of the FormErrorCollection class and the ReportError method of the XmlValidatingEventArgs class.

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

Community Additions

ADD
Show:
© 2015 Microsoft