語言

NameScope.Item[String] 屬性

定義

取得或設定指定金鑰的項目。

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ key); void set(System::String ^ key, System::Object ^ value); };
public object this[string key] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(key As String) As Object

參數

key
String

XAML 名稱映射的字串名稱,要取得或設定。

屬性值

由 XAML 名稱映射的物件值為 key。

實作

例外狀況

key 提供為 null。

-或-

value 作為一個集合運算所提供 null 。

適用於