This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetContainer2 Interface > IDatasetContainer2.CreateDataset Method (ArcObjects .NET 10.4 SDK) |
Given a data element, create a dataset in this container.
[Visual Basic .NET] Public Function CreateDataset ( _ ByVal DataElement As IDEDataset _ ) As IDataset
[C#] public IDataset CreateDataset ( IDEDataset DataElement );
[C++]
HRESULT CreateDataset(
IDEDataset* DataElement,
IDataset** Dataset
);
[C++]
Parameters DataElement [in]
DataElement is a parameter of type IDEDataset Dataset [out, retval]
Dataset is a parameter of type IDataset
The CreateDataset method will create a dataset given a populated data element. Use the DatasetTypes property to determine the supported dataset types.