ArcGIS Pro 3.0 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

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
// 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");

// Create and use the memory geodatabase
using (Geodatabase geodatabase = SchemaBuilder.CreateGeodatabase(memoryConnectionProperties))
{
  // Create additional schema here
}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.8 or higher.
See Also