public void Delete( Description description )
Public Sub Delete( _ ByVal description As Description _ )
Parameters
- description
- Indicates the object to be deleted.
public void Delete( Description description )
Public Sub Delete( _ ByVal description As Description _ )
Exception | Description |
---|---|
System.ArgumentNullException | description is null. |
// Deleting a FeatureDataset named as 'Parcel_Information' FeatureDatasetDefinition featureDatasetDefinition = geodatabase.GetDefinition<FeatureDatasetDefinition>("Parcel_Information"); FeatureDatasetDescription featureDatasetDescription = new FeatureDatasetDescription(featureDatasetDefinition); SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); // Delete an existing feature dataset named as 'Parcel_Information' schemaBuilder.Delete(featureDatasetDescription); schemaBuilder.Build();
// Create a FileGeodatabaseConnectionPath with the name of the file geodatabase you wish to delete FileGeodatabaseConnectionPath fileGeodatabaseConnectionPath = new FileGeodatabaseConnectionPath(new Uri(@"C:\Path-To-File-Geodatabase\YourName.gdb")); // Delete the file geodatabase SchemaBuilder.DeleteGeodatabase(fileGeodatabaseConnectionPath);
Target Platforms: Windows 11, Windows 10, Windows 8.1