ValidatorCollection.Count Eigenschaft

Definition

Ruft die Anzahl der Verweise in der Auflistung ab.

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

Eigenschaftswert

Int32

Die Anzahl der Validierungssteuerelemente in der ValidatorCollection dieser Seite.

Implementiert

Beispiele

Im folgenden Codebeispiel wird die Verwendung der Count Eigenschaft veranschaulicht.

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

Gilt für

Siehe auch