DelegatingXmlDictionaryReader.GetAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.