편집

다음을 통해 공유


DetailsViewInsertedEventArgs(Int32, Exception) Constructor

Definition

Initializes a new instance of the DetailsViewInsertedEventArgs class.

public:
 DetailsViewInsertedEventArgs(int affectedRows, Exception ^ e);
public DetailsViewInsertedEventArgs (int affectedRows, Exception e);
new System.Web.UI.WebControls.DetailsViewInsertedEventArgs : int * Exception -> System.Web.UI.WebControls.DetailsViewInsertedEventArgs
Public Sub New (affectedRows As Integer, e As Exception)

Parameters

affectedRows
Int32

The number of rows affected by the insert operation.

e
Exception

An Exception that represents the exception raised when the insert operation was performed. If no exception was raised, use null for this parameter.

Remarks

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

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

Property Initial value
AffectedRows The value of the affectedRows parameter.
Exception The System.Exception object contained in the e parameter.
ExceptionHandled Initialized to false.
KeepInInsertMode Initialized to false.

Note

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

Applies to

See also