共用方式為


DelegatingXmlDictionaryReader.GetAttribute 方法

定義

多載

GetAttribute(Int32)

取得指定索引位置的屬性值。

GetAttribute(String)

取得具有指定名稱的屬性值。

GetAttribute(String, String)

取得具有指定名稱和命名空間 URI 的屬性值。

GetAttribute(Int32)

取得指定索引位置的屬性值。

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

參數

i
Int32

屬性的索引。 索引是以 0 起始的索引。

傳回

指定之索引處的屬性的值。

備註

方法不會移動讀取器位置。

適用於

GetAttribute(String)

取得具有指定名稱的屬性值。

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

參數

name
String

屬性的限定名稱 (Qualified Name)。

傳回

屬性的值。 如果找不到屬性,會傳回 null。

備註

方法不會移動讀取器位置。

適用於

GetAttribute(String, String)

取得具有指定名稱和命名空間 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

參數

name
String

屬性的本機名稱。

namespaceURI
String

屬性的命名空間。

傳回

屬性的值。 如果找不到屬性,會傳回 null。

備註

方法不會移動讀取器。

適用於