WizardStepCollection.Contains(WizardStepBase) 方法

定义

确定 WizardStepCollection 集合是否包含一个特定的从 WizardStepBase 派生的对象。

public:
 bool Contains(System::Web::UI::WebControls::WizardStepBase ^ wizardStep);
public bool Contains (System.Web.UI.WebControls.WizardStepBase wizardStep);
member this.Contains : System.Web.UI.WebControls.WizardStepBase -> bool
Public Function Contains (wizardStep As WizardStepBase) As Boolean

参数

wizardStep
WizardStepBase

要在 WizardStepBase 集合中查找的从 WizardStepCollection 派生的对象。

返回

Boolean

如果在 WizardStepBase 集合中找到从 WizardStepCollection 派生的对象,则为 true;否则为 false

例外

wizardStepnull

注解

Contains使用该方法确定 -derived 对象是否WizardStepBase包含在集合中。 此方法通常用于在执行任务之前测试 WizardStepBase是否存在 -derived 对象,例如从集合中删除 WizardStepBase派生对象。

适用于

另请参阅