ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / GeoprocessingOptions Class / SetWriteGPOperationsToHistory Method
Boolean indicating if tools are added to the geoprocessing history after being run.

In This Topic
    SetWriteGPOperationsToHistory Method
    In This Topic
    Sets whether the tools being run are added to the current project's geoprocessing history. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub SetWriteGPOperationsToHistory( _
       ByVal writeGPOperationsToHistory As Boolean _
    ) 
    public void SetWriteGPOperationsToHistory( 
       bool writeGPOperationsToHistory
    )

    Parameters

    writeGPOperationsToHistory
    Boolean indicating if tools are added to the geoprocessing history after being run.
    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