XPathNavigator.MoveToFirst Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
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. If the XPathNavigator is already positioned on the first sibling, XPathNavigator will return true
and will not move its position.
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.
Applies to
See also
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de