public void CreateFileGeodatabaseSnippet() { // Create a FileGeodatabaseConnectionPath with the name of the file geodatabase you wish to create FileGeodatabaseConnectionPath fileGeodatabaseConnectionPath = new FileGeodatabaseConnectionPath(new Uri(@"C:\Path-To-File-Geodatabase\YourName.gdb")); // Create and use the file geodatabase using (Geodatabase geodatabase = SchemaBuilder.CreateGeodatabase(fileGeodatabaseConnectionPath)) { // Create additional schema here } }
public void DeleteFileGeodatabaseSnippet() { // 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); }
System.Object
ArcGIS.Core.Data.Connector
ArcGIS.Core.Data.FileGeodatabaseConnectionPath
Target Platforms: Windows 11, Windows 10