Skip to main content
All docs
V23.2

MongoDBQueryCollection.IndexOf(MongoDBQuery) Method

Returns the index of a specified query in the MongoDB query collection.

Namespace: DevExpress.DataAccess.MongoDB

Assembly: DevExpress.DataAccess.v23.2.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public int IndexOf(
    MongoDBQuery item
)

Parameters

Name Type Description
item MongoDBQuery

A MongoDB query.

Returns

Type Description
Int32

The index of the specified query. If the collection does not contain the specified query, the method returns -1.

See Also