XmlTextReader.MoveToNextAttribute メソッド
アセンブリ: System.Xml (system.xml.dll 内)

Dim instance As XmlTextReader Dim returnValue As Boolean returnValue = instance.MoveToNextAttribute
次の属性が存在する場合は true。それ以上、属性が存在しない場合は false。

![]() |
---|
Microsoft .NET Framework version 2.0 リリースでは、System.Xml.XmlReader.Create メソッドを使用して XmlReader インスタンスを作成することをお勧めします。これにより、このリリースで導入された新機能を十分に活用できます。詳細については、「XML リーダーの作成」を参照してください。 |
現在のノードが要素ノードである場合、このメソッドは MoveToFirstAttribute と等価になります。MoveToNextAttribute が true を返す場合は、リーダーが次の属性へ移動します。それ以外の場合、リーダーの位置は変更されません。

Public Sub DisplayAttributes(reader As XmlReader) If reader.HasAttributes Then Console.WriteLine("Attributes of <" & reader.Name & ">") While reader.MoveToNextAttribute() Console.WriteLine(" {0}={1}", reader.Name, reader.Value) End While End If End Sub 'DisplayAttributes
public void DisplayAttributes(XmlReader reader) { if (reader.HasAttributes) { Console.WriteLine("Attributes of <" + reader.Name + ">"); while (reader.MoveToNextAttribute()) { Console.WriteLine(" {0}={1}", reader.Name, reader.Value); } } }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からXmlTextReader.MoveToNextAttribute メソッドを検索する場合は、下記のリンクをクリックしてください。

- XmlTextReader.MoveToNextAttribute メソッドのページへのリンク