Editare

Partajați prin


WizardStepCollection.IndexOf(WizardStepBase) Method

Definition

Determines the index value that represents the position of the specified WizardStepBase-derived object in the collection.

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

Parameters

wizardStep
WizardStepBase

The WizardStepBase-derived object to search for in the WizardStepCollection collection.

Returns

If found, the zero-based index of the first occurrence of the WizardStepBase-derived object passed in within the current WizardStepCollection collection; otherwise, -1.

Exceptions

The WizardStepBase-derived object passed in is null.

Remarks

Use the IndexOf method to determine the index of the specified WizardStepBase-derived object in the current WizardStepCollection collection. If the WizardStepBase-derived object is not in the collection, the method returns -1.

Applies to

See also