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


IMxdServerQuery.QueryFeatures Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMxdServerQuery.QueryFeatures Method

Returns a feature cursor for the specified layer based on the given array of query filters. If there is more than one query filter in the array, they are 'ANDed' together.

[Visual Basic .NET]
Public Function QueryFeatures ( _
    ByVal MapName As String, _
    ByVal LayerID As Integer, _
    ByVal QueryFilters As IArray _
) As IFeatureCursor
[C#]
public IFeatureCursor QueryFeatures (
    string MapName,
    int LayerID,
    IArray QueryFilters
);
[C++]
HRESULT QueryFeatures(
  BSTR MapName,
  long LayerID,
  IArray* QueryFilters,
  IFeatureCursor** features
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR LayerID [in] LayerID is a parameter of type long QueryFilters [in]
QueryFilters is a parameter of type IArray features [out, retval]
features is a parameter of type IFeatureCursor

Product Availability

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

See Also

IMxdServerQuery Interface