ArcObjects Library Reference (Geoprocessing)  

IGpDispatch.Exists Method

Checks if a data element exists.

[Visual Basic .NET]
Public Function Exists ( _
    ByRef pInputValue As Object, _
    [ByRef DataType As Object] _
) As Boolean
[C#]
public bool Exists (
    ref object pInputValue,
    ref object DataType
);
[C#]

Optional Values

DataType   To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT Exists(
  VARIANT* pInputValue,
  VARIANT* DataType,
  VARIANT_BOOL* Exists
);
[C++]

Parameters

pInputValue [in]   pInputValue is a parameter of type VARIANT DataType [optional]   DataType is a parameter of type VARIANT

  To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Exists [out, retval]   Exists is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IGpDispatch Interface