DelegatingXmlDictionaryReader.Item[] Property

Definition

Overloads

Item[Int32]

Gets the value of the attribute with the specified index.

Item[String]

Gets the value of the attribute with the specified name (as returned by the Name property from the wrapped reader).

Item[String, String]

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.

C#
public override string this[int i] { get; }

Parameters

i
Int32

The index of the attribute.

Property Value

The attribute value at the specified index.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String]

Gets the value of the attribute with the specified name (as returned by the Name property from the wrapped reader).

C#
public override string this[string name] { get; }

Parameters

name
String

The qualified name of the attribute.

Property Value

The value of the specified attribute. If the attribute is not found, null is returned.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String, String]

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.

C#
public override string this[string name, string namespaceURI] { get; }

Parameters

name
String

The local name of the attribute.

namespaceURI
String

The namespace URI of the attribute.

Property Value

The value of the specified attribute. If the attribute is not found, null is returned.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1