ActivityCollection.IndexOf(Activity) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到 中 的ActivityICollection索引。
public:
int IndexOf(System::Workflow::ComponentModel::Activity ^ item);
public int IndexOf(System.Workflow.ComponentModel.Activity item);
override this.IndexOf : System.Workflow.ComponentModel.Activity -> int
Public Function IndexOf (item As Activity) As Integer
參數
- item
- Activity
獲取指數的活動。
傳回
在 中 的ActivityICollection索引。 否則 -1(如果 Activity 不在 ICollection中)。
實作
備註
此合集為類型安全。 若項目非型別 Activity,則會觸發執行時例外。