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.Exists Method (ArcObjects .NET 10.5 SDK) |
Returns whether the object referred to by the given geoprocessing value object exists.
[Visual Basic .NET] Public Function Exists ( _ ByVal pGPValue As IGPValue _ ) As Boolean
[C#] public bool Exists ( IGPValue pGPValue );
[C++]
HRESULT Exists(
IGPValue* pGPValue,
VARIANT_BOOL* Exists
);
[C++]
Parameters pGPValue [in]
pGPValue is a parameter of type IGPValue Exists [out, retval] Exists is a parameter of type VARIANT_BOOL
The Exists method checks if a value exists, or has been created. A code sample is included below. For an extended code sample refer to the Execute Method section of the Building Geoprocessing Functions technical document.