ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Core Namespace / EditingProjectExtender Class / GetSingleEditWorkspace Method

In This Topic
    GetSingleEditWorkspace Method
    In This Topic
    Gets the current datastore being edited. This method will only return non-null values when the project is configured for single workspace editing; that is EditingOptions.IsSingleWorkspaceEditSession is true. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public static ReadOnlyDatastoreConfiguration GetSingleEditWorkspace( 
       Project project
    )
    Public Shared Function GetSingleEditWorkspace( _
       ByVal project As Project _
    ) As ReadOnlyDatastoreConfiguration

    Parameters

    project

    Return Value

    The datastore configuration being edited.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If EditingOptions.IsSingleWorkspaceEditSession is false, then null will be returned.

    To ensure maximum robustness, callers should explicitly dispose of the returned ArcGIS.Core.Data.ReadOnlyDatastoreConfiguration in either a using statement or a finally block.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also