This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IP > IPlugInDatasetHelper Interface > IPlugInDatasetHelper.FetchByID Method (ArcObjects .NET 10.4 SDK) |
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,
IPlugInCursorHelper** cursorHelper
);
[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 cursorHelper [out, retval]
cursorHelper is a parameter of type IPlugInCursorHelper
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.