SiteMapNode.Key 屬性

定義

取得字串,表示網站導覽節點的查閱索引鍵。Gets a string representing a lookup key for a site map node.

public:
 property System::String ^ Key { System::String ^ get(); };
public string Key { get; }
member this.Key : string
Public ReadOnly Property Key As String

屬性值

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. SiteMapProvider類別也會公開 FindSiteMapNodeFromKey 方法,作為取得符合索引鍵值之物件參考的方式 SiteMapNodeThe SiteMapProvider class also exposes the FindSiteMapNodeFromKey method as a means for getting a reference to a SiteMapNode object that matches the key value.

用於索引鍵的特定值為提供者特定;不過,它保證不是 nullThe specific value that is used for the key is provider specific; however, it is guaranteed to not be null.

適用於

另請參閱