Bagikan melalui


ValidatorCollection.Count Properti

Definisi

Mendapatkan jumlah referensi dalam koleksi.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Nilai Properti

Jumlah kontrol validasi di halaman ValidatorCollection.

Penerapan

Contoh

Contoh kode berikut menunjukkan menggunakan Count properti .

// Get 'Validators' of the page to myCollection.
ValidatorCollection myCollection = Page.Validators;
// Show the number of validators of the page.
int count = myCollection.Count;
' Get 'Validators' of the page to myCollection.
Dim myCollection As ValidatorCollection = Page.Validators
' Show the number of validators of the page.
Dim count As Integer = myCollection.Count

Berlaku untuk

Lihat juga