ValidatorCollection.Count Eigenschap

Definitie

Hiermee haalt u het aantal verwijzingen in de verzameling op.

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

Waarde van eigenschap

Het aantal validatiebesturingselementen op de pagina.ValidatorCollection

Implementeringen

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Count eigenschap gebruikt.

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

Van toepassing op

Zie ook