SiteMapNode.Attributes 屬性

定義

取得或設定一組超出該類別強 SiteMapNode 型別屬性的額外屬性集合。

protected:
 property System::Collections::Specialized::NameValueCollection ^ Attributes { System::Collections::Specialized::NameValueCollection ^ get(); void set(System::Collections::Specialized::NameValueCollection ^ value); };
protected System.Collections.Specialized.NameValueCollection Attributes { get; set; }
member this.Attributes : System.Collections.Specialized.NameValueCollection with get, set
Protected Property Attributes As NameValueCollection

屬性值

A NameValueCollection 包含超越 、 SiteMapNodeTitleDescription的附加屬性UrlRoles;否則,null若不存在屬性,則 。

例外狀況

該節點為唯讀。

備註

Attributes這個集合通常用於需要對網站地圖節點套用額外屬性,但又不想為此衍生出自訂類別時。

受保護 Attributes 屬性的表現 Title 方式與 or Description 屬性不同。 若要支援本地化,開發者必須使用預設索引器。

適用於

另請參閱