ListViewInsertedEventArgs(Int32, Exception) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ListViewInsertedEventArgs 類別的新執行個體。
public:
ListViewInsertedEventArgs(int affectedRows, Exception ^ exception);
public ListViewInsertedEventArgs(int affectedRows, Exception exception);
new System.Web.UI.WebControls.ListViewInsertedEventArgs : int * Exception -> System.Web.UI.WebControls.ListViewInsertedEventArgs
Public Sub New (affectedRows As Integer, exception As Exception)
參數
- affectedRows
- Int32
插入操作影響的列數。
- exception
- Exception
當插入操作執行時(若有的話)會提出例外。 若未提出例外,則使用此 null 參數。
備註
使用此建構子初始化該類別的新實例 ListViewInsertedEventArgs 。
Note
此建構器主要供控制開發者在召開事件時使用。
下表顯示該 ListViewInsertedEventArgs 類別實例的初始屬性值。
| 房產 | 初始值 |
|---|---|
| AffectedRows | 參數的 affectedRows 值。 |
| Exception | 包含 System.Exception 在參數 e 中的物件。 |
| ExceptionHandled | 初始化為 false。 |
| KeepInInsertMode | 初始化為 false。 |