This document is archived and information here might be outdated.  Recommended version.


IGpDispatch.SetParameterAsText Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGpDispatch Interface > IGpDispatch.SetParameterAsText Method
ArcGIS Developer Help

IGpDispatch.SetParameterAsText Method

Sets given tool parameter as text.

[Visual Basic .NET]
Public Sub SetParameterAsText ( _
    ByVal Index As Integer, _
    ByVal argument As String _
)
[C#]
public void SetParameterAsText (
    int Index,
    string argument
);
[C++]
HRESULT SetParameterAsText(
  long Index,
  BSTR argument
);
[C++]
Parameters
Index [in]

Index is a parameter of type long argument [in]
argument is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IGpDispatch Interface