Share via


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

适用于