AttributeCollection.Count Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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())