Condividi tramite


ValidatorCollection.Count Proprietà

Definizione

Ottiene il numero di riferimenti nell'insieme.

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

Valore della proprietà

Numero di controlli di convalida nell'oggetto della ValidatorCollectionpagina.

Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato l'utilizzo della Count proprietà .

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

Si applica a

Vedi anche