ArcObjects Library Reference (GeoDatabase)  

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,
  IDataset** Dataset
);
[C++]

Parameters

DataElement [in]

  DataElement is a parameter of type IDEDataset

Dataset [out, retval]

  Dataset is a parameter of type IDataset

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

.NET Related Topics

How to create a multimodal network dataset | How to create a network dataset |