WizardStepCollection.IndexOf(WizardStepBase) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定表示指定 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。