This documentation is archived and is not being maintained.

WizardStepCollection::Contains Method

Determines whether the WizardStepCollection collection contains a specific WizardStepBase-derived object.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
bool Contains(
	WizardStepBase^ wizardStep
)

Parameters

wizardStep
Type: System.Web.UI.WebControls::WizardStepBase
The WizardStepBase-derived object to find in the WizardStepCollection collection.

Return Value

Type: System::Boolean
true if the WizardStepBase-derived object is found in the WizardStepCollection collection; otherwise, false.

ExceptionCondition
ArgumentNullException

wizardStep is nullptr.

Use the Contains method to determine whether a WizardStepBase-derived object is contained in the collection. This method is commonly used to test for the existence of a WizardStepBase-derived object before performing a task, such as removing a WizardStepBase-derived object from the collection.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: