This document is archived and information here might be outdated.  Recommended version.


IGxObjectContainer.AddChild Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IG > IGxObjectContainer Interface > IGxObjectContainer.AddChild Method
ArcGIS Developer Help

IGxObjectContainer.AddChild Method

Adds a new child and returns a reference to it. However, if a duplicate already exists, the function returns the existing child instead.

[Visual Basic .NET]
Public Function AddChild ( _
    ByVal child As IGxObject _
) As IGxObject
[C#]
public IGxObject AddChild (
    IGxObject child
);

Product Availability

Available with ArcGIS Desktop.

See Also

IGxObjectContainer Interface