ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / GeoprocessingOptions Class / SetAddOutputDatasetsToOpenMap Method
Boolean indicating if output datasets are to be added to an open map.

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 Sub SetAddOutputDatasetsToOpenMap( _
       ByVal addOutputDatasetsToOpenMap As Boolean _
    ) 
    public void SetAddOutputDatasetsToOpenMap( 
       bool addOutputDatasetsToOpenMap
    )

    Parameters

    addOutputDatasetsToOpenMap
    Boolean indicating if output datasets are to be added to an open map.
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also