CompositeActivityDesigner.RemoveActivities 方法

定義

從複合活動設計工具中移除所有活動。Removes all activities from the composite activity designer.

多載

RemoveActivities(ReadOnlyCollection<Activity>)

從複合活動設計工具中移除活動清單。Removes a list of activities from the composite activity designer.

RemoveActivities(IServiceProvider, ReadOnlyCollection<Activity>, String)

使用異動從設計工具中移除活動清單。Removes the list of activities from the designer using a transaction.

備註

您可以使用 RemoveActivities 從複合活動中移除活動。Use RemoveActivities to remove activities from the composite activity.

RemoveActivities(ReadOnlyCollection<Activity>)

從複合活動設計工具中移除活動清單。Removes a list of activities from the composite activity designer.

public:
 virtual void RemoveActivities(System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::ComponentModel::Activity ^> ^ activitiesToRemove);
public virtual void RemoveActivities (System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToRemove);
abstract member RemoveActivities : System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> unit
override this.RemoveActivities : System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> unit
Public Overridable Sub RemoveActivities (activitiesToRemove As ReadOnlyCollection(Of Activity))

參數

activitiesToRemove
ReadOnlyCollection<Activity>

要從設計工具中移除的活動清單。A list of activities to remove from the designer.

備註

從複合活動中移除活動清單。Removes the list of activities from the composite activity.

RemoveActivities(IServiceProvider, ReadOnlyCollection<Activity>, String)

使用異動從設計工具中移除活動清單。Removes the list of activities from the designer using a transaction.

public:
 static void RemoveActivities(IServiceProvider ^ serviceProvider, System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::ComponentModel::Activity ^> ^ activitiesToRemove, System::String ^ transactionDescription);
public static void RemoveActivities (IServiceProvider serviceProvider, System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToRemove, string transactionDescription);
static member RemoveActivities : IServiceProvider * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> * string -> unit
Public Shared Sub RemoveActivities (serviceProvider As IServiceProvider, activitiesToRemove As ReadOnlyCollection(Of Activity), transactionDescription As String)

參數

serviceProvider
IServiceProvider

與設計工具相關聯的服務提供者。The service provider associated with the designer.

activitiesToRemove
ReadOnlyCollection<Activity>

要移除的活動清單。The list of activities to remove.

transactionDescription
String

已建立的異動描述。The description of the transaction created.

備註

您可以使用 RemoveActivities 從指定異動內的複合活動中移除指定的活動清單。Use RemoveActivities to remove the specified list of activities from the composite activity within the specified transaction.

適用於