ListItem.Attributes 属性

定义

获取类不直接支持的 ListItem 的特性名和值对的集合。

public:
 property System::Web::UI::AttributeCollection ^ Attributes { System::Web::UI::AttributeCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Web.UI.AttributeCollection Attributes { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Attributes : System.Web.UI.AttributeCollection
Public ReadOnly Property Attributes As AttributeCollection

属性值

AttributeCollection

包含名称和值对的集合的 AttributeCollection

属性

注解

使用 Attributes 集合来管理在类的 ListItem开始标记和结束标记中声明的属性名称和值对,但不能直接支持该类。 可以编程方式向集合添加或删除属性。

适用于

另请参阅