Bahasa

FormViewInsertedEventArgs(Int32, Exception) Konstruktor

Definisi

Menginisialisasi instans baru dari kelas FormViewInsertedEventArgs.

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)

Parameter

affectedRows
Int32

Jumlah baris yang dipengaruhi oleh operasi sisipkan.

e
Exception

Yang Exception mewakili pengecualian yang dimunculkan ketika operasi penyisipan dilakukan. Jika tidak ada pengecualian yang dimunculkan, gunakan null untuk parameter ini.

Keterangan

Gunakan konstruktor ini untuk menginisialisasi instans FormViewInsertedEventArgs baru kelas.

Tabel berikut ini memperlihatkan nilai properti awal untuk instans FormViewInsertedEventArgs.

Property Nilai awal
AffectedRows Nilai affectedRows parameter .
Exception Objek System.Exception yang terkandung dalam e parameter .
ExceptionHandled Diinisialisasi ke false.
KeepInInsertMode Diinisialisasi ke false.

Note

Konstruktor ini digunakan terutama oleh pengembang kontrol saat meningkatkan peristiwa.

Berlaku untuk

Lihat juga