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


IFeatureClassUtil.GetFeature Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureClassUtil Interface > IFeatureClassUtil.GetFeature Method
ArcGIS Developer Help

IFeatureClassUtil.GetFeature Method

Gets the feature from the database with the specified object ID, in the specified spatial reference.

[Visual Basic .NET]
Public Function GetFeature ( _
    ByVal OID As Integer, _
    ByVal SpatialReference As ISpatialReference _
) As IFeature
[C#]
public IFeature GetFeature (
    int OID,
    ISpatialReference SpatialReference
);
[C++]
HRESULT GetFeature(
  long OID,
  ISpatialReference* SpatialReference
);
[C++]
Parameters
OID [in]

OID is a parameter of type long SpatialReference [in]
SpatialReference is a parameter of type ISpatialReference*

Product Availability

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

See Also

IFeatureClassUtil Interface