ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / GeoprocessingOptions Class / SetOverwriteExistingDatasets Method

In This Topic
    SetOverwriteExistingDatasets Method
    In This Topic
    Sets whether geoprocessing tools can overwrite existing data, layers, or files when run. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetOverwriteExistingDatasets( 
       bool overwriteExistingDatasets
    )
    Public Sub SetOverwriteExistingDatasets( _
       ByVal overwriteExistingDatasets As Boolean _
    ) 

    Parameters

    overwriteExistingDatasets
    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, Windows 8.1

    See Also