public static Task<IGPResult> ExecuteToolAsync( string toolPath, IEnumerable<string> values, IEnumerable<KeyValuePair<string,string>> environments, CancelableProgressor progressor, GPExecuteToolFlags flags )
Public Overloads Shared Function ExecuteToolAsync( _ ByVal toolPath As String, _ ByVal values As IEnumerable(Of String), _ ByVal environments As IEnumerable(Of KeyValuePair(Of String,String)), _ ByVal progressor As CancelableProgressor, _ Optional ByVal flags As GPExecuteToolFlags _ ) As Task(Of IGPResult)
Parameters
- toolPath
- Use toolboxalias.toolname or toolname_toolboxalias pattern
- values
- Array of parameter values
- environments
- Array of environment settings - each setting is a key-value pair of environment name and its value). Use MakeEnvironmentArray first to pack all environments.
- progressor
- CancelableProgressor
- flags
- flags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlags
Return Value
A task of type IGPResult, IGPResult