ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / GeoprocessingOptions Class / SetAddOutputDatasetsToOpenMap Method

In This Topic
    SetAddOutputDatasetsToOpenMap Method
    In This Topic
    Sets whether output datasets created by geoprocessing tools should be automatically added to an open map. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetAddOutputDatasetsToOpenMap( 
       bool addOutputDatasetsToOpenMap
    )
    Public Sub SetAddOutputDatasetsToOpenMap( _
       ByVal addOutputDatasetsToOpenMap As Boolean _
    ) 

    Parameters

    addOutputDatasetsToOpenMap
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Note: see ArcGIS.Desktop.Core.Geoprocessing.GPExecuteToolFlags for available options for modifying behavior of ArcGIS.Desktop.Core.Geoprocessing.Geoprocessing.ExecuteToolAsync. Changing these parameters modifies behavior of interactive GP tools
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also