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())