派生クラスでオーバーライドされると、指定したインデックスの属性の値を取得します。
Overloads Public MustOverride Function GetAttribute( _
ByVal i As Integer _) As String
[C#]
public abstract string GetAttribute(inti);
[C++]
public: virtual String* GetAttribute(inti) = 0;
[JScript]
public abstract function GetAttribute(
i : int) : String;
パラメータ
- i
属性のインデックス。インデックスが 0 から始まっています。最初の属性のインデックスは 0 です。
戻り値
指定した属性の値。このメソッドは、リーダーを移動しません。
使用例
このメソッドの使用例については、 GetAttribute (XmlTextReader クラス) のトピックを参照してください。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard
参照
XmlReader クラス | XmlReader メンバ | System.Xml 名前空間 | XmlReader.GetAttribute オーバーロードの一覧