Share via


ValidatorCollection.Count Propiedad

Definición

Obtiene el número de referencias de la colección.

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

Valor de propiedad

Int32

Número de controles de validación del objeto ValidatorCollection de la página.

Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra el uso de la Count propiedad .

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

Se aplica a

Consulte también