GetChildren(IAggregatable, ChildVisitorOptions)
Gets the list of children of a specified parent object.
Declaration
public static IList<object> GetChildren(this IAggregatable parent, ChildVisitorOptions options = ChildVisitorOptions.None)
Parameters
Type | Name | Description |
---|---|---|
IAggregatable | parent | The parent object. |
ChildVisitorOptions | options | Options. |
Returns
Type | Description |
---|---|
IList<object> | A list of children. |
Remarks
This list may contain duplicates if an object has several parent-child relationships to the same parent. Use GetDistinctChildren(IAggregatable, ChildVisitorOptions) to get a list of distinct children.