Share via


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 中宣告的屬性名稱和值組,但類別並不直接支援。 您可以透過程式設計方式將屬性新增或移除至集合。

適用於

另請參閱