Uredi

Deli z drugimi prek


SiteMapNode.Attributes Property

Definition

Gets or sets a collection of additional attributes beyond the strongly typed properties that are defined for the SiteMapNode class.

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

Property Value

A NameValueCollection of additional attributes for the SiteMapNode beyond Title, Description, Url, and Roles; otherwise, null, if no attributes exist.

Exceptions

The node is read-only.

Remarks

The Attributes collection is typically used when you need to apply additional attributes to a site map node, but do not want to derive a custom class in order to do so.

The protected Attributes attribute does not perform in the same manner as the Title or Description properties. For localization support, developers must use the default indexer.

Applies to

See also