Upravit

Sdílet prostřednictvím


ErrorMode Enum

Definition

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.

public enum class ErrorMode
public enum ErrorMode
type ErrorMode = 
Public Enum ErrorMode
Inheritance
ErrorMode

Fields

Name Value Description
Modal 0

The 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.

Modeless 1

The user is notified of the error with an inline alert and can choose to return to the previous value with an undo operation.

Remarks

The ErrorMode enumeration is used to specify the mode in which to display a custom error when using the Add(XPathNavigator, String, String, String, Int32, ErrorMode) method of the FormErrorCollection class and the ReportError(XPathNavigator, Boolean, String, String, Int32, ErrorMode) method of the XmlValidatingEventArgs class.

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

Applies to