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


IGpDispatch.SetParameterAsText Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

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