Edit

Share via


DelegatingXmlDictionaryReader.GetAttribute Method

Definition

Overloads

GetAttribute(Int32)

Gets the value of the attribute at the given index.

GetAttribute(String)

Gets the value of the attribute with the given name.

GetAttribute(String, String)

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

GetAttribute(Int32)

Gets the value of the attribute at the given index.

public:
 override System::String ^ GetAttribute(int i);
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 attribute with the given name.

public:
 override System::String ^ GetAttribute(System::String ^ 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 attribute with the given name and namespace Uri.

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

Parameters

name
String

The local name of the attribute.

namespaceURI
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