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


IGPUtilities.CreateParameterValue Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPUtilities.CreateParameterValue Method

Creates a geoprocessing value object of the given data type from the given string.

[Visual Basic .NET]
Public Function CreateParameterValue ( _
    ByVal text As String, _
    ByVal pDataType As IGPDataType, _
    ByVal Direction As esriGPParameterDirection _
) As IGPValue
[C#]
public IGPValue CreateParameterValue (
    string text,
    IGPDataType pDataType,
    esriGPParameterDirection Direction
);
[C++]
HRESULT CreateParameterValue(
  BSTR text,
  IGPDataType* pDataType,
  esriGPParameterDirection Direction,
  IGPValue** ppValue
);
[C++]

Parameters text [in] text is a parameter of type BSTR pDataType [in]
pDataType is a parameter of type IGPDataType Direction [in]
Direction is a parameter of type esriGPParameterDirection ppValue [out, retval]
ppValue is a parameter of type IGPValue

Product Availability

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

See Also

IGPUtilities Interface