AttributeCollection.Count Eigenschap

Definitie

Hiermee haalt u het aantal kenmerken in het AttributeCollection object op.

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

Waarde van eigenschap

Het aantal items in de verzameling.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de Count eigenschap gebruikt om het aantal kenmerken op een besturingselement naar de betreffende pagina te schrijven.

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

Van toepassing op

Zie ook