XmlNodeReader.Item[] プロパティ

定義

オーバーロード

名前 説明
Item[Int32]

指定したインデックスを持つ属性の値を取得します。

Item[String]

派生クラスでオーバーライドされると、指定した名前の属性の値を取得します。

Item[String, String]

指定したローカル名と名前空間 URI を持つ属性の値を取得します。

Item[Int32]

指定したインデックスを持つ属性の値を取得します。

public:
 virtual property System::String ^ default[int] { System::String ^ get(int i); };
public override string this[int i] { get; }
member this.Item(int) : string
Default Public Overrides ReadOnly Property Item(i As Integer) As String

パラメーター

i
Int32

属性のインデックス。

プロパティ値

指定した属性の値。

例外

i が 0 未満か、 AttributeCount以上です。

注釈

XmlReader クラスと XmlReaderSettings メソッドを使用して、Create インスタンスを作成することをお勧めします。

このプロパティはリーダーを移動しません。

こちらもご覧ください

適用対象

Item[String]

派生クラスでオーバーライドされると、指定した名前の属性の値を取得します。

public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ name); };
public override string this[string name] { get; }
member this.Item(string) : string
Default Public Overrides ReadOnly Property Item(name As String) As String

パラメーター

name
String

プロパティ値

適用対象

Item[String, String]

指定したローカル名と名前空間 URI を持つ属性の値を取得します。

public:
 virtual property System::String ^ default[System::String ^, System::String ^] { System::String ^ get(System::String ^ name, System::String ^ namespaceURI); };
public override string this[string name, string namespaceURI] { get; }
member this.Item(string * string) : string
Default Public Overrides ReadOnly Property Item(name As String, namespaceURI As String) As String

パラメーター

name
String

属性のローカル名。

namespaceURI
String

属性の名前空間 URI。

プロパティ値

指定した属性の値。 属性が見つからない場合は、 null が返されます。

注釈

Note

新しい機能を利用するには、XmlReader クラスと XmlReaderSettings メソッドを使用してCreate インスタンスを作成することをお勧めします。 詳細については、「 XmlReader リファレンス」ページの「解説」セクションを参照してください。

このプロパティはリーダーを移動しません。

こちらもご覧ください

適用対象