Share via


SiteMapNode.Attributes 屬性

定義

取得或設定為 SiteMapNode 類別所定義之強型別屬性 (Property) 以外的其他屬性 (Attribute) 集合。

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

屬性值

NameValueCollectionSiteMapNodeTitleDescription 以外,Url 之其他屬性的 Roles,如果屬性不存在,則為 null

例外狀況

節點為唯讀。

備註

Attributes當您需要將其他屬性套用至網站地圖節點,但不想衍生自訂類別才能這麼做時,通常會使用集合。

受保護的 Attributes 屬性不會以與 或 Description 屬性相同的方式 Title 執行。 針對當地語系化支援,開發人員必須使用預設索引子。

適用於

另請參閱