Key Property

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 */
public String get_Key ()

public function get Key () : String

Not applicable.

Property Value

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 a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2016 Microsoft