Skip to main content
All docs
V22.2

MongoDBQueryCollection.IndexOf(MongoDBQuery) Method

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

Namespace: DevExpress.DataAccess.MongoDB

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess

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