This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetContainer Interface > IDatasetContainer.AddDataset Method (ArcObjects .NET 10.4 SDK) |
Adds a dataset to the dataset collection.
[Visual Basic .NET] Public Sub AddDataset ( _ ByVal datasetToAdd As IDataset _ )
[C#] public void AddDataset ( IDataset datasetToAdd );
[C++]
HRESULT AddDataset(
IDataset* datasetToAdd
);
[C++]
Parameters datasetToAdd [in]
datasetToAdd is a parameter of type IDataset
When calling this method on feature datasets, both the XY and Z spatial reference systems of the dataset (if applicable) must match those of the feature dataset.