Interface IDatasetContainer2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

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

[Guid("C826E861-DBFA-4B86-95FE-8352E287E284")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IDatasetContainer2 : IDatasetContainer

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. 

Properties

Dataset[esriDatasetType, int]

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

IDataset Dataset[esriDatasetType Type, int Index] { get; }

Parameters

Type esriDatasetType
Index int

Property Value

IDataset

Remarks

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

DatasetByName[esriDatasetType, string]

The dataset of the specified type with the specified name.

IDataset DatasetByName[esriDatasetType Type, string Name] { get; }

Parameters

Type esriDatasetType
Name string

Property Value

IDataset

Remarks

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

DatasetCount[esriDatasetType]

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

int DatasetCount[esriDatasetType Type] { get; }

Parameters

Type esriDatasetType

Property Value

int

Remarks

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

DatasetNames[esriDatasetType]

The names of all the datasets with the specified type.

IEnumDatasetName DatasetNames[esriDatasetType Type] { get; }

Parameters

Type esriDatasetType

Property Value

IEnumDatasetName

Remarks

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

DatasetTypes

The names of all the datasets with the specified type.

IEnumDatasetType DatasetTypes { get; }

Property Value

IEnumDatasetType

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.

Datasets[esriDatasetType]

An enumerator over the datasets of the specified type.

IEnumDataset Datasets[esriDatasetType Type] { get; }

Parameters

Type esriDatasetType

Property Value

IEnumDataset

Remarks

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

Methods

AddDataset(IDataset)

void AddDataset(IDataset datasetToAdd)

Parameters

datasetToAdd IDataset

CreateDataset(IDEDataset)

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

IDataset CreateDataset(IDEDataset DataElement)

Parameters

DataElement IDEDataset

Returns

IDataset

Remarks

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