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


IPlugInDatasetHelper.FetchByID Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IP > IPlugInDatasetHelper Interface > IPlugInDatasetHelper.FetchByID Method
ArcGIS Developer Help

IPlugInDatasetHelper.FetchByID Method

Gets a record by object id.

[Visual Basic .NET]
Public Function FetchByID ( _
    ByVal ClassIndex As Integer, _
    ByVal ID As Integer, _
    ByVal FieldMap As Object _
) As IPlugInCursorHelper
[C#]
public IPlugInCursorHelper FetchByID (
    int ClassIndex,
    int ID,
    object FieldMap
);
[C++]
HRESULT FetchByID(
  long ClassIndex,
  long ID,
  VARIANT FieldMap
);
[C++]
Parameters
ClassIndex [in]

ClassIndex is a parameter of type long ID [in]
ID is a parameter of type long FieldMap [in]
FieldMap is a parameter of type VARIANT

Product Availability

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

Description

Returns a record by object ID. The cursor will have a single record. If there is no object with the given id, this method should fail.

FieldMap indicates which fields should be returned by the query. See IPlugInCursorHelper::QueryValues and IPlugInFastQueryValues::FastQueryValues for a description of how to use the field map.

See Also

IPlugInDatasetHelper Interface