Skip to main content

SqlQueryCollection.IndexOf(SqlQuery) Method

Returns the zero-based index of the specified SQL query in the collection.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.2.dll

NuGet Package: DevExpress.DataAccess

#Declaration

public int IndexOf(
    SqlQuery item
)

#Parameters

Name Type Description
item SqlQuery

A SqlQuery object to locate in the collection.

#Returns

Type Description
Int32

An integer value, indicating the position of the specified query in the collection.

#Remarks

If the specified item has not been found in the collection, this method returns -1.

See Also