ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core.Geoprocessing Namespace / GPToolExecuteEventHandler Delegate
The event name values are:
Message object. Use following type conversion - see code example below.

In This Topic
    GPToolExecuteEventHandler Delegate
    In This Topic
    Syntax
    Public Delegate Sub GPToolExecuteEventHandler( _
       ByVal eventName As String, _
       ByVal o As Object _
    ) 
    public delegate void GPToolExecuteEventHandler( 
       string eventName,
       object o
    )

    Parameters

    eventName
    The event name values are:
    • "OnValidate" - triggers when internal validation is done.
    • "OnMessage"
    • "OnProgressMessage"
    • "OnProgressPos"
    • "OnBeginExecute" - triggers when execution begins.
    • "OnEndExecute" - triggers when execution is complete.
    o
    Message object. Use following type conversion - see code example below.
    • "OnValidate" - (o as IGPMessage[])
    • "OnMessage" - (o as IGPMessage)
    • "OnProgressMessage" - (string)o
    • "OnProgressPos" - (int)o
    • "OnBeginExecute" - o = null
    • "OnEndExecute" - (o as IGPResult)
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also