AttributeCollection.Count プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
AttributeCollection オブジェクト内の属性の数を取得します。
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
プロパティ値
コレクション内の項目数。
例
次の例では、 プロパティを Count 使用して、コントロールの属性の数を含むページに書き込む方法を示します。
Response.Write("Attribute Collection count before PostBack = " + myAttributeCollection.Count);
Response.Write("Attribute Collection count before PostBack = " & _
myAttributeCollection.Count.ToString())