AttributeCollection.Count Propriété

Définition

Obtient le nombre d'attributs dans AttributeCollection.

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

Valeur de propriété

Nombre d’éléments dans la collection

Exemples

L’exemple suivant montre comment utiliser la Count propriété pour écrire le nombre d’attributs d’un contrôle dans la page contenante.

Response.Write("Attribute Collection  count before PostBack = " + myAttributeCollection.Count);
         Response.Write("Attribute Collection count before PostBack = " & _
myAttributeCollection.Count.ToString())

S’applique à

Voir aussi