ArcGIS Pro 3.7 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 Shared Function GetSingleEditWorkspaceAsync( _
       ByVal project As Project _
    ) As Task(Of ReadOnlyDatastoreConfiguration)
    public static Task<ReadOnlyDatastoreConfiguration> GetSingleEditWorkspaceAsync( 
       Project project
    )

    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.6 or higher.
    See Also