ArcGIS Pro 2.9 API Reference Guide
CreateGeodatabase(MemoryConnectionProperties) Method
Example 

ArcGIS.Core.Data.DDL Namespace > SchemaBuilder Class > CreateGeodatabase Method : CreateGeodatabase(MemoryConnectionProperties) Method
Represents the properties to create the memory ArcGIS.Core.Data.Geodatabase.
Creates a new memory ArcGIS.Core.Data.Geodatabase with the specified name.
Syntax
Public Overloads Shared Function CreateGeodatabase( _
   ByVal memoryConnectionProperties As MemoryConnectionProperties _
) As Geodatabase

Parameters

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

Return Value

The newly created memory ArcGIS.Core.Data.Geodatabase.
Exceptions
ExceptionDescription
memoryConnectionProperties is null.
The memory ArcGIS.Core.Data.Geodatabase already exists.
A geodatabase-related exception has occurred.
Example
// 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

See Also

Reference

SchemaBuilder Class
SchemaBuilder Members
Overload List