WizardStepCollection.IndexOf(WizardStepBase) 方法

定義

判斷索引值,該索引值代表集合中指定 WizardStepBase 衍生物件之位置。

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 衍生物件。

傳回

Int32

如果找到,則將 WizardStepBase 衍生物件的第一個項目之以零起始的索引傳入目前 WizardStepCollection 集合,否則為 -1。

例外狀況

傳入的 WizardStepBase 衍生物件為 null

備註

IndexOf使用 方法來判斷目前 WizardStepCollection 集合中指定 WizardStepBase 衍生物件的索引。 WizardStepBase如果衍生物件不在集合中,方法會傳回 -1。

適用於

另請參閱