語言

XmlnsDictionary.Item[] 屬性

定義

取得或設定與指定前綴相關的 XML 命名空間 URI。

多載

名稱 Description
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 不是字串

-或-

要設定的值不是字串。

prefix 是 null

-或-

設定的值為 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。

例外狀況

prefix 是 null

-或-

設定的值為 null。

適用於