XPathNavigator.MoveToFirst メソッド
定義
XPathNavigator を現在のノードの最初の兄弟ノードに移動します。Moves the XPathNavigator to the first sibling node of the current node.
public:
virtual bool MoveToFirst();
public:
abstract bool MoveToFirst();
public virtual bool MoveToFirst ();
public abstract bool MoveToFirst ();
abstract member MoveToFirst : unit -> bool
override this.MoveToFirst : unit -> bool
abstract member MoveToFirst : unit -> bool
Public Overridable Function MoveToFirst () As Boolean
Public MustOverride Function MoveToFirst () As Boolean
戻り値
XPathNavigator が現在のノードの最初の兄弟ノードに正常に移動した場合は true
。最初のレベルに兄弟がないか、XPathNavigator が現在属性ノードに配置されている場合は false
。true
if the XPathNavigator is successful moving to the first sibling node of the current node; false
if there is no first sibling, or if the XPathNavigator is currently positioned on an attribute node. XPathNavigator が既に最初の兄弟に配置されている場合、XPathNavigator は true
を返し、その位置を移動しません。If the XPathNavigator is already positioned on the first sibling, XPathNavigator will return true
and will not move its position.
最初の兄弟がないために MoveToFirst() が false
を返す場合、または XPathNavigator が現在属性に配置されている場合、XPathNavigator の位置は変更されません。If MoveToFirst() returns false
because there is no first sibling, or if XPathNavigator is currently positioned on an attribute, the position of the XPathNavigator is unchanged.