Compartilhar via


DelegatingXmlDictionaryReader.GetAttribute Method

Definition

Overloads

GetAttribute(Int32)

Gets the value of the InnerReader's attribute at the given index.

GetAttribute(String)

Gets the value of the InnerReader's attribute with the given name.

GetAttribute(String, String)

Gets the value of the InnerReader's attribute with the given name and namespace Uri.

GetAttribute(Int32)

Gets the value of the InnerReader's attribute at the given index.

public override string GetAttribute (int i);
override this.GetAttribute : int -> string
Public Overrides Function GetAttribute (i As Integer) As String

Parameters

i
Int32

The index of the attribute. The index is 0 based index.

Returns

The value of the attribute at the specified index.

Remarks

The method does not move the reader position.

Applies to

GetAttribute(String)

Gets the value of the InnerReader's attribute with the given name.

public override string GetAttribute (string name);
override this.GetAttribute : string -> string
Public Overrides Function GetAttribute (name As String) As String

Parameters

name
String

The qualified name of the attribute.

Returns

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

Remarks

The method does not move the reader position.

Applies to

GetAttribute(String, String)

Gets the value of the InnerReader's attribute with the given name and namespace Uri.

public override string GetAttribute (string name, string namespace);
override this.GetAttribute : string * string -> string
Public Overrides Function GetAttribute (name As String, namespace As String) As String

Parameters

name
String

The local name of the attribute.

namespace
String

The namespace of the attribute.

Returns

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

Remarks

The method does not move the reader.

Applies to