XmlnsDictionary.Item[] 屬性

定義

取得或設定與指定的前置字元關聯的 XML 命名空間 URI。

多載

Item[Object]

取得或設定與指定的前置字元關聯的 XAML 命名空間 URI。

Item[String]

取得或設定與指定的前置字元關聯的 XAML 命名空間 URI。

Item[Object]

取得或設定與指定的前置字元關聯的 XAML 命名空間 URI。

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

參數

prefix
Object

前置詞,要從其中取得或設定關聯的 XML 命名空間 URI。

屬性值

相對應的 XAML 命名空間 URI。

實作

例外狀況

prefix 不是字串

-或-

要設定的值不是字串。

prefixnull

-或-

要設定的值為 null

適用於

Item[String]

取得或設定與指定的前置字元關聯的 XAML 命名空間 URI。

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

參數

prefix
String

要從中取得或設定相關聯之命名空間的前置字元。

屬性值

相對應的 XML 命名空間 URI。

例外狀況

prefixnull

-或-

要設定的值為 null

適用於