This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.PackGPValue Method (ArcObjects .NET 10.5 SDK) |
Sets the given geoprocessing value into the given parameter/variable.
[Visual Basic .NET] Public Sub PackGPValue ( _ ByVal pValue As IGPValue, _ ByVal pInput As Object _ )
[C#] public void PackGPValue ( IGPValue pValue, object pInput );
[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
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.