Provides access to members that enumerate through Datasets.
Members
Name | Description | |
---|---|---|
Next | Retrieves the next dataset in the enumeration sequence. | |
Reset | Resets the enumeration sequence to the beginning. |
IEnumDataset.Next Method
Retrieves the next dataset in the enumeration sequence.
Public Function Next ( _
) As IDataset
public IDataset Next (
);
IEnumDataset.Reset Method
Resets the enumeration sequence to the beginning.
Public Sub Reset ( _
)
public void Reset (
);
Classes that implement IEnumDataset
Classes | Description |
---|---|
RasterBands (esriDataSourcesRaster) | An enumerator useful for iterating through a set of raster bands. |
// Loop through datasets contained in a feature dataset
private void LoopThroughDatasets(IFeatureDataset featureDataset)
{
IDataset dataset = (IDataset)featureDataset;
IEnumDataset enumDataset = dataset.Subsets;
IDataset containedDataset = enumDataset.Next();
while (containedDataset != null)
{
if (containedDataset.Type == esriDatasetType.esriDTFeatureClass)
{
// Process feature class dataset
}
containedDataset = enumDataset.Next();
}
}