SiteMapNode.Attributes Property
.NET Framework 3.0
Gets or sets a collection of additional attributes beyond the strongly typed properties that are defined for the SiteMapNode class.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ protected NameValueCollection get_Attributes () /** @property */ protected void set_Attributes (NameValueCollection value)
protected function get Attributes () : NameValueCollection protected function set Attributes (value : NameValueCollection)
Not applicable.
Property Value
A NameValueCollection of additional attributes for the SiteMapNode beyond Title, Description, Url, and Roles; otherwise, a null reference (Nothing in Visual Basic), if no attributes exist.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.
| Topic | Location |
|---|---|
| How to: Localize Site-Map Data | Building ASP .NET Web Applications |
| How to: Localize Site-Map Data | Building ASP .NET Web Applications |
Community Additions
ADD
Show: