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


IFeatureClassUtil.GetFeature Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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,
  IFeature** Feature
);
[C++]

Parameters OID [in] OID is a parameter of type long SpatialReference [in]
SpatialReference is a parameter of type ISpatialReference Feature [out, retval]
Feature is a parameter of type IFeature

Product Availability

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

See Also

IFeatureClassUtil Interface