ArcGIS Pro 2.9 API Reference Guide
SetWriteGPOperationsToHistory Method

ArcGIS.Desktop.Core Namespace > GeoprocessingOptions Class : SetWriteGPOperationsToHistory Method
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 void SetWriteGPOperationsToHistory( 
   bool writeGPOperationsToHistory
)
Public Sub SetWriteGPOperationsToHistory( _
   ByVal writeGPOperationsToHistory As Boolean _
) 

Parameters

writeGPOperationsToHistory
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

Reference

GeoprocessingOptions Class
GeoprocessingOptions Members