WizardStepCollection.IndexOf(WizardStepBase) Method

Definition

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

C#
public int IndexOf(System.Web.UI.WebControls.WizardStepBase wizardStep);

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

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also