SiteMapNode.Item[String] 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據指定的索引鍵,取得或設定 Attributes 集合的自訂屬性或資源字串。
public:
virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); void set(System::String ^ key, System::String ^ value); };
public virtual string this[string key] { get; set; }
member this.Item(string) : string with get, set
Default Public Overridable Property Item(key As String) As String
- key
- String
字串,識別要擷取的屬性或資源字串。
key
所識別的自訂屬性或資源字串,否則為 null
。
節點為唯讀。
屬性 Item[] 是索引子,會先判斷追蹤 SiteMapNode 物件的提供者是否支援當地語系化。 如果是,則會 Item[] 呼叫
GetImplicitResourceString 方法,傳遞 key
參數。 如果未傳回當地語系化文字,則會 Item[] 呼叫
如果未傳回當地語系化文字,或提供者不支援當地語系化,則會 Item[] 嘗試使用指定的 key
從 Attributes 集合傳回專案。
產品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |