ActivityCollection.Remove(Activity) 方法

定义

从 <a0/a0> 中删除调用中指定的活动。

public:
 bool Remove(System::Workflow::ComponentModel::Activity ^ item);
public bool Remove(System.Workflow.ComponentModel.Activity item);
override this.Remove : System.Workflow.ComponentModel.Activity -> bool
Public Function Remove (item As Activity) As Boolean

参数

item
Activity

要从中删除的活动 ICollection

返回

true 如果操作成功,则为否则,为 false.

实现

注解

这是 ICollection 类型安全的。 如果项的类型不是, Activity则会引发运行时异常。

适用于