ValidatorCollection.Count Vlastnost

Definice

Získá počet odkazů v kolekci.

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

Hodnota vlastnosti

Int32

Počet ověřovacích ovládacích prvků na stránce ValidatorCollection.

Implementuje

Příklady

Následující příklad kódu ukazuje použití Count vlastnosti.

// 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

Platí pro

Viz také