FormViewModeEventArgs(FormViewMode, Boolean) Constructor

Definition

Initializes a new instance of the FormViewModeEventArgs class.

C#
public FormViewModeEventArgs(System.Web.UI.WebControls.FormViewMode mode, bool cancelingEdit);

Parameters

mode
FormViewMode

One of the FormViewMode enumeration values.

cancelingEdit
Boolean

true to indicate the ModeChanging event was raised as a result of the user canceling an edit operation; otherwise, false.

Remarks

Use this constructor to initialize a new instance of the FormViewModeEventArgs class.

The following table shows initial property values for an instance of the FormViewModeEventArgs class.

Property Initial Value
CancelingEdit The value of the cancelingEdit parameter.
NewMode The value of the mode parameter.

Poznámka

This constructor is used primarily by control developers when raising events.

Applies to

Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also