Επεξεργασία

Κοινή χρήση μέσω


DetailsViewModeEventArgs(DetailsViewMode, Boolean) Constructor

Definition

Initializes a new instance of the DetailsViewModeEventArgs class.

public:
 DetailsViewModeEventArgs(System::Web::UI::WebControls::DetailsViewMode mode, bool cancelingEdit);
public DetailsViewModeEventArgs (System.Web.UI.WebControls.DetailsViewMode mode, bool cancelingEdit);
new System.Web.UI.WebControls.DetailsViewModeEventArgs : System.Web.UI.WebControls.DetailsViewMode * bool -> System.Web.UI.WebControls.DetailsViewModeEventArgs
Public Sub New (mode As DetailsViewMode, cancelingEdit As Boolean)

Parameters

mode
DetailsViewMode

One of the DetailsViewMode 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 DetailsViewModeEventArgs class.

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

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

Note

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

Applies to

See also