语言

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 不是字符串

-或-

要设置的值不是字符串。

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。

适用于