SiteMapNode.Key 屬性

定義

取得一個字串,代表站點地圖節點的查找鍵。

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

屬性值

一個代表查詢鍵的字串。

備註

在內部,網站導航類別可在搜尋網站地圖節點時使用此查詢鍵,並建立節點間的關係。 這個 SiteMapProvider 類別同時也將此 FindSiteMapNodeFromKey 方法暴露為取得與鍵值相符物件參考 SiteMapNode 的手段。

用於金鑰的特定值是提供者專屬的;然而,它保證不會是 null

適用於

另請參閱