DelegatingXmlDictionaryReader.Item[] 属性

定义

重载

Item[Int32]

获取具有指定索引的属性的值。Gets the value of the attribute with the specified index.

Item[String]

获取具有指定的本地名称和命名空间 URI(在由来自换行读取器的 Name 属性返回时)。Gets the value of the attribute with the specified name (as returned by the Name property from the wrapped reader).

Item[String, String]

获取具有指定的本地名称和命名空间 URI(在由 LocalName 属性和来自换行读取器的 NamespaceURI 属性返回时)。Gets the value of the attribute with the specified local name and namespace URI (as returned by the LocalName property and the NamespaceURI property from the wrapped reader.

Item[Int32]

获取具有指定索引的属性的值。Gets the value of the attribute with the specified index.

public:
 virtual property System::String ^ default[int] { System::String ^ get(int i); };
public override string this[int i] { get; }
member this.Item(int) : string
Default Public Overrides ReadOnly Property Item(i As Integer) As String

参数

i
Int32

属性的索引。The index of the attribute.

属性值

String

指定索引处的特性值。The attribute value at the specified index.

适用于

Item[String]

获取具有指定的本地名称和命名空间 URI(在由来自换行读取器的 Name 属性返回时)。Gets the value of the attribute with the specified name (as returned by the Name property from the wrapped reader).

public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ name); };
public override string this[string name] { get; }
member this.Item(string) : string
Default Public Overrides ReadOnly Property Item(name As String) As String

参数

name
String

属性的限定名称。The qualified name of the attribute.

属性值

String

指定的属性的值。The value of the specified attribute. 如果未找到该属性,则返回 nullIf the attribute is not found, null is returned.

适用于

Item[String, String]

获取具有指定的本地名称和命名空间 URI(在由 LocalName 属性和来自换行读取器的 NamespaceURI 属性返回时)。Gets the value of the attribute with the specified local name and namespace URI (as returned by the LocalName property and the NamespaceURI property from the wrapped reader.

public:
 virtual property System::String ^ default[System::String ^, System::String ^] { System::String ^ get(System::String ^ name, System::String ^ namespaceURI); };
public override string this[string name, string namespaceURI] { get; }
member this.Item(string * string) : string
Default Public Overrides ReadOnly Property Item(name As String, namespaceURI As String) As String

参数

name
String

属性的本地名称。The local name of the attribute.

namespaceURI
String

属性的命名空间 URI。The namespace URI of the attribute.

属性值

String

指定的属性的值。The value of the specified attribute. 如果未找到该属性,则返回 nullIf the attribute is not found, null is returned.

适用于