ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / SchemaBuilder Class / Create Method / Create(FeatureDatasetDescription) Method
Indicates the ArcGIS.Core.Data.FeatureDataset to be created.
Example

In This Topic
    Create(FeatureDatasetDescription) Method
    In This Topic
    Enqueue the create operation on the object referred to by the FeatureDatasetDescription.
    Syntax

    Parameters

    featureDatasetDescription
    Indicates the ArcGIS.Core.Data.FeatureDataset to be created.

    Return Value

    Exceptions
    ExceptionDescription
    The total path length for the ArcGIS.Core.Data.FeatureDataset to be created must be less than 252 characters.
    featureDatasetDescription is null.
    Memory ArcGIS.Core.Data.Geodatabase does not support feature datasets.
    Example
    Creating a FeatureDataset
    public void CreateFeatureDatasetSnippet(Geodatabase geodatabase)
    {
      // Creating a FeatureDataset named as 'Parcel_Information'
    
      SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase);
    
      // Create a FeatureDataset named as 'Parcel Information'
      FeatureDatasetDescription featureDatasetDescription =
        new FeatureDatasetDescription("Parcel_Information", SpatialReferences.WGS84);
      schemaBuilder.Create(featureDatasetDescription);
    
      // Build status
      bool buildStatus = schemaBuilder.Build();
    
      // Build errors
      if (!buildStatus)
      {
        IReadOnlyList<string> errors = schemaBuilder.ErrorMessages;
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also