ESRI.ArcGIS.Geoprocessor
ExecuteAsync(String,IVariantArray) Method
See Also  Example Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright @ ESRI | Careers
ESRI.ArcGIS.Geoprocessor Namespace > Geoprocessor Class > ExecuteAsync Method : ExecuteAsync(String,IVariantArray) Method




toolName
The name of the tool
parameters
an array of Strings representing the tool's parameters.
Executes a tool asynchronously within the current Geoprocessing session.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ExecuteAsync( _
   ByVal toolName As String, _
   ByVal parameters As IVariantArray _
) As IGeoProcessorResult
Visual Basic (Usage)Copy Code
Dim instance As Geoprocessor
Dim toolName As String
Dim parameters As IVariantArray
Dim value As IGeoProcessorResult
 
value = instance.ExecuteAsync(toolName, parameters)
C# 
public IGeoProcessorResult ExecuteAsync( 
   string toolName,
   IVariantArray parameters
)

Parameters

toolName
The name of the tool
parameters
an array of Strings representing the tool's parameters.

Example

This sample shows how to create the IVariantArray.
C#Copy Code
ESRI.ArcGIS.esriSystem.IVariantArray parameters = new VarArrayClass(); 

parameters.Add(mPath + mDatabase + @"\" + mFeatureClassName); //in_features 

parameters.Add(mPath + mDatabase + @"\" + mCopyFeatureClassName); //out_feature_class

See Also

© 2010 All Rights Reserved.