IDatasetContainer2 Interface

Provides access to members that return datasets by name, ID and index.

Members

Name Description
Method AddDataset Adds a dataset to the dataset collection.
Method CreateDataset Given a data element, create a dataset in this container.
Read-only property Dataset The dataset associated with the specified index value and dataset type.
Read-only property DatasetByName The dataset of the specified type with the specified name.
Read-only property DatasetCount The number of datasets of the specified type in this container.
Read-only property DatasetNames The names of all the datasets with the specified type.
Read-only property Datasets An enumerator over the datasets of the specified type.
Read-only property DatasetTypes The names of all the datasets with the specified type.

IDatasetContainer2.CreateDataset Method

Given a data element, create a dataset in this container.

Public Function CreateDataset ( _
    ByVal DataElement As IDEDataset _
) As IDataset
public IDataset CreateDataset (
    IDEDataset DataElement
);

Remarks

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

IDatasetContainer2.Dataset Property

The dataset associated with the specified index value and dataset type.

Public Function get_Dataset ( _
    ByVal Type As esriDatasetType, _
    ByVal Index As Integer _
) As IDataset
public IDataset get_Dataset (
    esriDatasetType Type,
    int Index
);

Remarks

The Dataset property returns the dataset of the specified index value and dataset type.

IDatasetContainer2.DatasetByName Property

The dataset of the specified type with the specified name.

Public Function get_DatasetByName ( _
    ByVal Type As esriDatasetType, _
    ByVal Name As String _
) As IDataset
public IDataset get_DatasetByName (
    esriDatasetType Type,
    string Name
);

Remarks

The DatasetByName property returns the dataset of the specified type with the specified name.

IDatasetContainer2.DatasetCount Property

The number of datasets of the specified type in this container.

Public Function get_DatasetCount ( _
    ByVal Type As esriDatasetType _
) As Integer
public int get_DatasetCount (
    esriDatasetType Type
);

Remarks

The DatasetCount property returns the number of datasets of the specified type in this container.

IDatasetContainer2.DatasetNames Property

The names of all the datasets with the specified type.

Public Function get_DatasetNames ( _
    ByVal Type As esriDatasetType _
) As IEnumDatasetName
public IEnumDatasetName get_DatasetNames (
    esriDatasetType Type
);

Remarks

The DatasetNames property returns an enumerator of IDatasetNames over the datasets of the specified type.

IDatasetContainer2.Datasets Property

An enumerator over the datasets of the specified type.

Public Function get_Datasets ( _
    ByVal Type As esriDatasetType _
) As IEnumDataset
public IEnumDataset get_Datasets (
    esriDatasetType Type
);

Remarks

The Datasets property returns an enumerator over the datasets of the specified type.

IDatasetContainer2.DatasetTypes Property

The names of all the datasets with the specified type.

Public ReadOnly Property DatasetTypes As IEnumDatasetType
public IEnumDatasetType DatasetTypes {get;}

Remarks

The DatasetTypes property returns an enumerator of IEnumDatasetType containing the supported esriDatasetTypes for the container. Use this method to determine the supported datasets for the container.

Inherited Interfaces

Interfaces Description
IDatasetContainer Provides access to adding datasets to the dataset container.

Classes that implement IDatasetContainer2

Classes Description

Remarks

The IDatasetContainer2 interface provides access to properties that return datasets by name, ID and index. It also provides the mechanism for creating datasets through the user of the data element. Use the DatasetTypes method to determine the supported datasets for the container.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.