ArcObjects Library Reference  (Carto)    

IMapServerData.GetFeature Method

Returns a feature, given the feature ID and layer.

[Visual Basic 6.0]
Function GetFeature(
    ByVal MapName As String, _
    ByVal LayerID As Long, _
    ByVal FeatureId As Long _
) As IFeature
[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
);
[Java]
public IFeature getFeature (
    String MapName,
    int LayerID,
    int FeatureId
)
throws
    IOException,
    AutomationException
[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