ValidatorCollection.Count Proprietà

Definizione

Ottiene il numero dei 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à

Int32

Il numero dei controlli di convalida nell'oggetto ValidatorCollection della pagina.

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