ArcGIS Pro 2.8 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
featureDatasetDescription is null.
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 10, Windows 8.1

See Also

Reference

SchemaBuilder Class
SchemaBuilder Members
Overload List