WizardStepCollection.IndexOf(WizardStepBase) 方法

定义

确定表示指定 WizardStepBase-derived 对象在集合中的位置的索引值。

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

参数

wizardStep
WizardStepBase

WizardStepBase在其中搜索的 WizardStepCollection -derived 对象。

返回

如果找到,则为当前WizardStepBase集合中传入的 WizardStepCollection-derived 对象的第一个匹配项的从零开始的索引;否则为 -1。

例外

WizardStepBase传入的派生对象为 null.

注解

使用IndexOf该方法确定当前WizardStepBase集合中指定WizardStepCollection派生对象的索引。 WizardStepBase如果 -derived 对象不在集合中,该方法将返回 -1。

适用于

另请参阅