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

Helper method for MoveToFirstChild()()()() and MoveToNext()()()() (when current step is XPathObjectNavigator..::..PropertyStep). Moves XPathObjectNavigator to first (or next) property or first IEnumerable item.

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

Syntax

C#
protected virtual bool MoveToFirstPropertyOrItem(
	PropertyInfo After,
	Object Obj,
	bool Replace
)
Visual Basic
Protected Overridable Function MoveToFirstPropertyOrItem ( _
	After As PropertyInfo, _
	Obj As Object, _
	Replace As Boolean _
) As Boolean
Visual C++
protected:
virtual bool MoveToFirstPropertyOrItem(
	PropertyInfo^ After, 
	Object^ Obj, 
	bool Replace
)
F#
abstract MoveToFirstPropertyOrItem : 
        After:PropertyInfo * 
        Obj:Object * 
        Replace:bool -> bool 
override MoveToFirstPropertyOrItem : 
        After:PropertyInfo * 
        Obj:Object * 
        Replace:bool -> bool 
JScript
protected function MoveToFirstPropertyOrItem(
	After : PropertyInfo, 
	Obj : Object, 
	Replace : boolean
) : boolean

Parameters

After
Type: System.Reflection..::..PropertyInfo
Property after which start search. If ommited or null first property is used.
Obj
Type: System..::..Object
Object which's properties should be examined. If not specified or null the ContextObject is used.
Replace
Type: System..::..Boolean
Determines if new step is appended after current (false) or replaces current (true)

Return Value

True if moving was successfull

Remarks

This function uses GetFirstProperty(Object, PropertyInfo, Boolean) to get first (or next) property in forward direction. If there is no such property and context object is IEnumerable which has at least one item the XPathObjectNavigator is muved to this first item.

See Also