XmlnsDictionary.Item[String] 属性

定义

获取或设置与指定前缀关联的 XML 命名空间 URI。Gets or sets the XML namespace URI associated with the specified prefix.

重载

Item[Object]

获取或设置与指定前缀关联的 XAML 命名空间 URI。Gets or sets the XAML namespace URI associated with the specified prefix.

Item[String]

获取或设置与指定前缀关联的 XAML 命名空间 URI。Gets or sets the XAML namespace URI associated with the specified prefix.

Item[Object]

获取或设置与指定前缀关联的 XAML 命名空间 URI。Gets or sets the XAML namespace URI associated with the specified prefix.

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 的前缀。The prefix from which to get or set the associated XML namespace URI.

属性值

对应的 XAML 命名空间 URI。The corresponding XAML namespace URI.

实现

异常

prefix 不是字符串prefix is not a string -or- 要设置的值不是字符串。The value to set is not a string.

prefixnullprefix is null

-or- 值设置为 nullThe value to set is null.

Item[String]

获取或设置与指定前缀关联的 XAML 命名空间 URI。Gets or sets the XAML namespace URI associated with the specified prefix.

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

获取或设置关联的命名空间时所针对的前缀。The prefix from which to get or set the associated namespace.

属性值

对应的 XML 命名空间 URI。The corresponding XML namespace URI.

异常

prefixnullprefix is null

-or- 值设置为 nullThe value to set is null.

适用于