Bagikan melalui


AttributeCollection.Count Properti

Definisi

Mendapatkan jumlah atribut dalam AttributeCollection objek.

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

Nilai Properti

Jumlah item dalam koleksi.

Contoh

Contoh berikut menunjukkan cara menggunakan Count properti untuk menulis jumlah atribut pada kontrol ke halaman yang berisi.

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

Berlaku untuk

Lihat juga