XmlReaderPullParser.GetAttributeValue メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| GetAttributeValue(Int32) |
リーダーからインデックス付き属性の値を取得します。 |
| GetAttributeValue(String, String) |
ローカル名と名前空間 URI で属性値を取得します。 |
GetAttributeValue(Int32)
リーダーからインデックス付き属性の値を取得します。
public string GetAttributeValue(int index);
abstract member GetAttributeValue : int -> string
override this.GetAttributeValue : int -> string
パラメーター
- index
- Int32
属性インデックス。
戻り値
属性値。
実装
適用対象
GetAttributeValue(String, String)
ローカル名と名前空間 URI で属性値を取得します。
public string? GetAttributeValue(string? namespaceURI, string? name);
abstract member GetAttributeValue : string * string -> string
override this.GetAttributeValue : string * string -> string
パラメーター
- namespaceURI
- String
リーダーに渡す名前空間 URI。
- name
- String
属性のローカル名、または null。
戻り値
リーダーによって返される値、またはnameがnullされたときにnull。