ArcObjects Library Reference  (Geoprocessing)    

IGPUtilities.PackGPValue Method

Sets the given geoprocessing value into the given parameter/variable.

[Visual Basic 6.0]
Sub PackGPValue(
    ByVal pValue As IGPValue, _
    ByVal pInput As Unknown _
)
[Visual Basic .NET]
Public Sub PackGPValue ( _
    ByVal pValue As IGPValue, _
    ByVal pInput As Object _
)
[C#]
public void PackGPValue (
    IGPValue pValue,
    object pInput
);
[Java]
public void packGPValue (
    IGPValue pValue,
    Object pInput
)
throws
    IOException,
    AutomationException
[C++]
HRESULT PackGPValue(
  IGPValue* pValue,
  LPUNKNOWN pInput
);
[C++]

Parameters

pValue [in]

  pValue is a parameter of type IGPValue

pInput [in]

  pInput is a parameter of type LPUNKNOWN

Product Availability

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

Remarks

The PackGPValue method is used to assign, for example an output value to a specific function parameter. such as a derived output. A code sample is included below. For an extended code sample refer to the Validate Method section of the Building Geoprocessing Functions technical document.

[Visual Basic 6.0]

'Set the output value into the derived output parameter
  Set pParam = paramvalues.Element(1)
 pUtils.PackGPValue pOutputValue, pParam

See Also

IGPUtilities Interface

 


Feedback Send feedback on this page