ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / SchemaBuilder Class / CreateGeodatabase Method / CreateGeodatabase(MemoryConnectionProperties) Method
Represents the properties to create the memory ArcGIS.Core.Data.Geodatabase.
Example Version

CreateGeodatabase(MemoryConnectionProperties) Method
Creates a new memory ArcGIS.Core.Data.Geodatabase with the specified name.
Syntax

Parameters

memoryConnectionProperties
Represents the properties to create the memory ArcGIS.Core.Data.Geodatabase.

Return Value

The newly created memory ArcGIS.Core.Data.Geodatabase.
Exceptions
Example
Creating a 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
  }
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.0 or higher.
See Also