Export (0) Print
Expand All

SiteMapNode.Key Property

Gets a string representing a lookup key for a site map node.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public string Key { get; }

Property Value

Type: System.String
A string representing a lookup key.

Internally, site navigation classes can use this lookup key when searching for site map nodes, as well as for establishing relationships between nodes. The SiteMapProvider class also exposes the FindSiteMapNodeFromKey method as a means for getting a reference to a SiteMapNode object that matches the key value.

The specific value that is used for the key is provider specific; however, it is guaranteed to not be null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft