ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / MemoryConnectionProperties Class / MemoryConnectionProperties Constructor / MemoryConnectionProperties Constructor(String)
The name of the memory geodatabase.
Example

In This Topic
    MemoryConnectionProperties Constructor(String)
    In This Topic
    Initializes a new instance of the MemoryConnectionProperties class.
    Syntax
    public MemoryConnectionProperties( 
       string name
    )
    Public Function New( _
       ByVal name As String _
    )

    Parameters

    name
    The name of the memory geodatabase.
    Exceptions
    ExceptionDescription
    The Geoprocessing 'in-memory' workspace is not supported with the Pro SDK. Use 'memory' instead.
    Example
    Creating the memory geodatabase
    public Geodatabase GetMemoryGeodatabase()
    {
      // Creates the default memory geodatabase if not exist or connects to an existing one if already exists
      Geodatabase memoryGeodatabase = new Geodatabase(new MemoryConnectionProperties());
      
      // Creates schema
      SchemaBuilder schemaBuilder = new SchemaBuilder(memoryGeodatabase);
      schemaBuilder.Create(new TableDescription("MyTable", new List<FieldDescription>()));
      schemaBuilder.Build();
      
      return memoryGeodatabase;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also