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

In This Topic
    GetSingleEditWorkspaceAsync 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.
    Syntax
    public static Task<ReadOnlyDatastoreConfiguration> GetSingleEditWorkspaceAsync( 
       Project project
    )
    Public Shared Function GetSingleEditWorkspaceAsync( _
       ByVal project As Project _
    ) As Task(Of ReadOnlyDatastoreConfiguration)

    Parameters

    project

    Return Value

    A task representing the datastore configuration being edited.
    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