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

属性值

如果不存在其他属性,则为 <a0/&;;否则,如果不存在属性,则为其他属性。

例外

节点是只读的。

注解

Attributes如果需要将其他属性应用于站点地图节点,但不希望派生自定义类,则通常使用此集合。

受保护的Attributes属性不以与或Title属性相同的方式Description执行。 对于本地化支持,开发人员必须使用默认索引器。

适用于

另请参阅