ArcGIS Pro 2.9 API Reference Guide
Create(FeatureDatasetDescription) Method
Example 

ArcGIS.Core.Data.DDL Namespace > SchemaBuilder Class > Create Method : Create(FeatureDatasetDescription) Method
Indicates the ArcGIS.Core.Data.FeatureDataset to be created.
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 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, Windows 8.1

See Also

Reference

SchemaBuilder Class
SchemaBuilder Members
Overload List