[This is preliminary documentation and is subject to change.]

When overridden in a derived class, moves the XPathObjectNavigator to the first child node of the current node.

Namespace: Tools.XmlT.XPathT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public override bool MoveToFirstChild()
Visual Basic
Public Overrides Function MoveToFirstChild As Boolean
Visual C++
public:
virtual bool MoveToFirstChild() override
F#
abstract MoveToFirstChild : unit -> bool 
override MoveToFirstChild : unit -> bool 
JScript
public override function MoveToFirstChild() : boolean

Return Value

Returns true if the XPathObjectNavigator is successful moving to the first child node of the current node; otherwise, false. If false, the position of the XPathObjectNavigator is unchanged.

Remarks

Only XPathObjectNavigator..::..RootStep, XPathObjectNavigator..::..PropertyStep and XPathObjectNavigator..::..EnumerableStep can have children. In order step-that-can-have-children to have children its context object must not be of supported type (see ) and it must at least one public instance property with public getter or it must be IEnumerable with at least one item to enumerate.

This function uses MoveToFirstPropertyOrItem(PropertyInfo, Object, Boolean) for unsupported types.

If type of context object is supported then it has only text child taht contains value of supported type.

Is IsCircleReferenced returns true than this method retruns false if AllowCircles is set to false

See Also