DataSourceExpressionCollection::IndexOf Method (DataSourceExpression^)

.NET Framework (current version)
 

Gets the index of a specified data source expression object in the DataSourceExpressionCollection object.

Namespace:   System.Web.UI.WebControls.Expressions
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
int IndexOf(
	DataSourceExpression^ expression
)

Parameters

expression
Type: System.Web.UI.WebControls.Expressions::DataSourceExpression^

The data source expression object to locate.

Return Value

Type: System::Int32

The index of the data source expression object, if it is in the collection; otherwise, -1.

.NET Framework
Available since 4.0
Return to top
Show: