ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Core.Data Namespace / DatastoreConfiguration Class
Members Example

In This Topic
    DatastoreConfiguration Class
    In This Topic
    Represents a configuration of a datastore. See SetSingleEditWorkspaceAsync for editing an enterprise geodatabase when it has a mixture of versioned and non-versioned datasets.
    Object Model
    DatastoreConfiguration ClassDatastore Class
    Syntax
    public sealed class DatastoreConfiguration 
    Public NotInheritable Class DatastoreConfiguration 
    Example
    Start a Single workspace edit session via a DatastoreConfiguration
    // setup the configuration to edit the data registered as versioned in the egdb
    var datastoreConfig = new DatastoreConfiguration(egdb, VersionState.Versioned);
    
    // start the edit session on the workspace
    var project = Project.Current;
    var v_success = await project.SetSingleEditWorkspaceAsync(datastoreConfig);
    
    // OR 
    
    // setup the configuration to edit the data that is not registered as versioned
    var nonVersionedDatastoreConfig = new DatastoreConfiguration(egdb, VersionState.NonVersioned);
    // start the edit session on the workspace
    var nv_success = await project.SetSingleEditWorkspaceAsync(nonVersionedDatastoreConfig);
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Data.DatastoreConfiguration

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also