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


IDatasetContainer2.CreateDataset Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetContainer2 Interface > IDatasetContainer2.CreateDataset Method
ArcGIS Developer Help

IDatasetContainer2.CreateDataset Method

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
);
[C++]
Parameters
DataElement [in]

DataElement is a parameter of type IDEDataset*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The CreateDataset method will create a dataset given a populated data element.  Use the DatasetTypes property to determine the supported dataset types.

See Also

IDatasetContainer2 Interface