SiteMapNode.Attributes Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A NameValueCollection of additional attributes for the SiteMapNode beyond Title, Description, Url, and Roles; otherwise, null
, if no attributes exist.
The node is read-only.
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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: