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

要在 IList 中尋找的 Object

傳回

如果 value 在集合中則為 true,否則為 false

實作

備註

如果 Object 不屬於 Activity 型別,會引發錯誤訊息為 "Error_InvalidListItem" 的例外狀況。

適用於