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


IGpDispatch.ListFields Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGpDispatch.ListFields Method

Returns a collection of fields in the given table/feature class based on a query string and type.

[Visual Basic .NET]
Public Function ListFields ( _
    ByRef pInputValue As Object, _
    [ByRef wildCard As Object], _
    [ByRef FieldType As Object] _
) As Object
[C#]
public object ListFields (
    ref object pInputValue,
    ref object wildCard,
    ref object FieldType
);
[C#]

Optional Values

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

Parameters pInputValue [in] pInputValue is a parameter of type VARIANT wildCard [optional] wildCard 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. FieldType [optional] FieldType 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. ppDescribe [out, retval] ppDescribe is a parameter of type IDispatch*

Product Availability

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

See Also

IGpDispatch Interface