Share via


SysComparable.getEnumerator Method [AX 2012]

Retrieves an enumerator that can provide the compare engine with children of this parent.

Syntax

public SysComparableEnumerator getEnumerator()

Run On

Called

Return Value

Type: SysComparableEnumerator Interface
Returns a SysComparableEnumerator enumerator value that can enumerate the children; otherwise, returns a value of nullNothingnullptrunita null reference (Nothing in Visual Basic) if no children exist.

Remarks

To display the children in the tree pane of the comparison form, make sure that the showTreePane method returns a value of true. All children must also implement the SysComparable interface.

Examples

The following code example can be found in the Tutorial_Comparable.getEnumerator method.

public SysComparableEnumerator getEnumerator() 
{ 
    //No children for customers 
    return null; 
}

See Also

SysComparable Interface

SysComparableEnumerator Interface

Tutorial_Comparable.getEnumerator Method