FormViewInsertedEventArgs(Int32, Exception) 建構函式

定義

初始化 FormViewInsertedEventArgs 類別的新執行個體。Initializes a new instance of the FormViewInsertedEventArgs class.

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

參數

affectedRows
Int32

插入作業所影響的資料列數目。The number of rows affected by the insert operation.

e
Exception

Exception 表示在執行插入作業時引發了例外狀況。An Exception that represents the exception raised when the insert operation was performed. 如果沒有引發例外狀況,請將這個參數設為 nullIf no exception was raised, use null for this parameter.

備註

使用此函式來初始化類別的新實例 FormViewInsertedEventArgsUse this constructor to initialize a new instance of the FormViewInsertedEventArgs class.

下表顯示 FormViewInsertedEventArgs 執行個體的初始屬性值。The following table shows the initial property values for an instance of FormViewInsertedEventArgs.

屬性Property 初始值Initial value
AffectedRows affectedRows 參數的值。The value of the affectedRows parameter.
Exception System.Exception包含在參數中的物件 eThe System.Exception object contained in the e parameter.
ExceptionHandled 已初始化為 falseInitialized to false.
KeepInInsertMode 已初始化為 falseInitialized to false.

注意

當引發事件時,主要由控制項開發人員使用這個函式。This constructor is used primarily by control developers when raising events.

適用於

另請參閱