An identifier that uniquely identifies the node in the tree. This identifier must be the same key that is exposed by SiteMapNode.Key, IHierarchyData.Path, and the AspMenu's MenuItem.DataPath when bound to a SiteMapDataSource. The actual value is provider dependent and might be a URL, a GUID, an integer, etc. To indicate a newly created node (i.e. in the structure sent from the client to the server), the key should be the empty string. In all other cases, the key must be a unique, nonempty value.
Namespace: Microsoft.SharePoint.Navigation
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property Key As String
Get
Set
'Usage
Dim instance As EditableAspMenuNode
Dim value As String
value = instance.Key
instance.Key = value
public string Key { get; set; }
Property value
Type: System.String
Remarks
(to client, from client)