FormViewModeEventArgs(FormViewMode, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FormViewModeEventArgs class.
public:
FormViewModeEventArgs(System::Web::UI::WebControls::FormViewMode mode, bool cancelingEdit);
public FormViewModeEventArgs (System.Web.UI.WebControls.FormViewMode mode, bool cancelingEdit);
new System.Web.UI.WebControls.FormViewModeEventArgs : System.Web.UI.WebControls.FormViewMode * bool -> System.Web.UI.WebControls.FormViewModeEventArgs
Public Sub New (mode As FormViewMode, cancelingEdit As Boolean)
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. |
Note
This constructor is used primarily by control developers when raising events.