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
TypeesriDatasetTypeIndexint
Property Value
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
TypeesriDatasetTypeNamestring
Property Value
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
TypeesriDatasetType
Property Value
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
TypeesriDatasetType
Property Value
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
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
TypeesriDatasetType
Property Value
Remarks
The Datasets property returns an enumerator over the datasets of the specified type.
Methods
AddDataset(IDataset)
void AddDataset(IDataset datasetToAdd)
Parameters
datasetToAddIDataset
CreateDataset(IDEDataset)
Given a data element, create a dataset in this container.
IDataset CreateDataset(IDEDataset DataElement)
Parameters
DataElementIDEDataset
Returns
Remarks
The CreateDataset method will create a dataset given a populated data element. Use the DatasetTypes property to determine the supported dataset types.