public static Task<IGPResult> ExecuteToolAsync( string toolPath, IEnumerable<string> values, IEnumerable<KeyValuePair<string,string>> environments, Nullable<CancellationToken> cancelToken, GPToolExecuteEventHandler callback, GPExecuteToolFlags flags )
Public Overloads Shared Function ExecuteToolAsync( _ ByVal toolPath As String, _ ByVal values As IEnumerable(Of String), _ Optional ByVal environments As IEnumerable(Of KeyValuePair(Of String,String)), _ Optional ByVal cancelToken As Nullable(Of CancellationToken), _ Optional ByVal callback As GPToolExecuteEventHandler, _ Optional ByVal flags As GPExecuteToolFlags _ ) As Task(Of IGPResult)
Parameters
- toolPath
- Use toolboxalias.toolname, toolname_toolboxalias pattern or full path
- values
- Array of parameter values. Use MakeValueArray to pack all parameter values first.
- 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.
- cancelToken
- A CancellationToken object.
- callback
- Execute event delegateGPToolExecuteEventHandler(optional)
- flags
- flags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlags
Return Value
A Task of type IGPResult. See IGPResult for more information.