ArcObjects Library Reference (Carto)  

IMapServerData.GetFeature Method

Returns a feature, given the feature ID and layer.

[Visual Basic .NET]
Public Function GetFeature ( _
    ByVal MapName As String, _
    ByVal LayerID As Integer, _
    ByVal FeatureId As Integer _
) As IFeature
[C#]
public IFeature GetFeature (
    string MapName,
    int LayerID,
    int FeatureId
);
[C++]
HRESULT GetFeature(
  BSTR MapName,
  long LayerID,
  long FeatureId,
  IFeature** Feature
);
[C++]

Parameters

MapName [in]   MapName is a parameter of type BSTR LayerID [in]   LayerID is a parameter of type long FeatureId [in]   FeatureId is a parameter of type long Feature [out, retval]

  Feature is a parameter of type IFeature

Product Availability

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

See Also

IMapServerData Interface