Redigera

Dela via


DataSourceExpressionCollection.IndexOf(DataSourceExpression) Method

Definition

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

public:
 int IndexOf(System::Web::UI::WebControls::Expressions::DataSourceExpression ^ expression);
public int IndexOf (System.Web.UI.WebControls.Expressions.DataSourceExpression expression);
member this.IndexOf : System.Web.UI.WebControls.Expressions.DataSourceExpression -> int
Public Function IndexOf (expression As DataSourceExpression) As Integer

Parameters

expression
DataSourceExpression

The data source expression object to locate.

Returns

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

Applies to