public void OpenMemoryGeodatabase() { // Connects to the default memory geodatabase, if exists otherwise throws exception MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties(); // Alternatively, connects to memory geodatabase named as 'InterimMemoryGeodatabase' // MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties("InterimMemoryGeodatabase"); // Opens the memory geodatabase using (Geodatabase geodatabase = new Geodatabase(memoryConnectionProperties)) { // Use memory geodatabase } }
public void CreateMemoryGeodatabaseSnippet() { // Create the memory connection properties to connect to default memory geodatabase MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties(); // Alternatively create the memory connection properties to connect to memory geodatabase named as 'InterimMemoryGeodatabase' // MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties("InterimMemoryGeodatabase"); // Creates the new memory geodatabase if it does not exist or connects to an existing one if it already exists using (Geodatabase geodatabase = new Geodatabase(memoryConnectionProperties)) { // Create additional schema here } }
public void DeleteMemoryGeodatabaseSnippet() { // Create the memory connection properties to connect to default memory geodatabase MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties(); // Delete the memory geodatabase SchemaBuilder.DeleteGeodatabase(memoryConnectionProperties); }
System.Object
ArcGIS.Core.Data.Connector
ArcGIS.Core.Data.MemoryConnectionProperties
Target Platforms: Windows 11, Windows 10