MongoDBQueryCollection.IndexOf(MongoDBQuery) Method
In This Article
Returns the index of a specified query in the MongoDB query collection.
Namespace: DevExpress.DataAccess.MongoDB
Assembly: DevExpress.DataAccess.v24.2.dll
NuGet Package: DevExpress.DataAccess
#Declaration
public int IndexOf(
MongoDBQuery item
)
#Parameters
Name | Type | Description |
---|---|---|
item | Mongo |
A Mongo |
#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