ActivityCollection.ICollection<Activity>.Contains(Activity) 方法

定义

获取一个值,该值指示 Object 是否是集合的成员。

 virtual bool System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.Contains(System::Workflow::ComponentModel::Activity ^ item) = System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^>::Contains;
bool ICollection<Activity>.Contains (System.Workflow.ComponentModel.Activity item);
abstract member System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.Contains : System.Workflow.ComponentModel.Activity -> bool
override this.System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.Contains : System.Workflow.ComponentModel.Activity -> bool
Function Contains (item As Activity) As Boolean Implements ICollection(Of Activity).Contains

参数

item
Activity

要在 Object 中定位的 IList

返回

如果值在集合中,则为 true;否则为 false

实现

注解

如果 Object 的类型不是 Activity,则引发异常,错误消息为“Error_InvalidListItem”。

适用于