public new FeatureDatasetDefinition GetDefinition()
Public Overloads Shadows Function GetDefinition() As FeatureDatasetDefinition
Return Value
The FeatureDatasetDefinition of this dataset.
public new FeatureDatasetDefinition GetDefinition()
Public Overloads Shadows Function GetDefinition() As FeatureDatasetDefinition
Exception | Description |
---|---|
System.InvalidOperationException | This dataset does not have a valid definition. |
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
public void IterateDatasetsFromAFeatureDataset(Geodatabase geodatabase, string featureDatasetName = "City", string featureClassInFeatureDataset = "Buildings") { // Open a feature dataset using (FeatureDataset cityFeatureDataset = geodatabase.OpenDataset<FeatureDataset>(featureDatasetName)) { // Get a feature class definition from a feature dataset FeatureClassDefinition buildingsFeatureClassDefinition = cityFeatureDataset.GetDefinition<FeatureClassDefinition>(featureClassInFeatureDataset); // Iterate dataset definition IReadOnlyList<FeatureClassDefinition> cityFeatureClassDefinitions = cityFeatureDataset.GetDefinitions<FeatureClassDefinition>(); foreach (FeatureClassDefinition cityFeatureClassDefinition in cityFeatureClassDefinitions) { // Use feature class definition } } }
Target Platforms: Windows 11, Windows 10