CompositeActivityDesigner.SerializeActivitiesToDataObject 方法

定义

将活动数组序列化为一个可以放在剪贴板中的 IDataObject,或在初始化拖放操作时使用。

public:
 static System::Windows::Forms::IDataObject ^ SerializeActivitiesToDataObject(IServiceProvider ^ serviceProvider, cli::array <System::Workflow::ComponentModel::Activity ^> ^ activities);
public static System.Windows.Forms.IDataObject SerializeActivitiesToDataObject (IServiceProvider serviceProvider, System.Workflow.ComponentModel.Activity[] activities);
static member SerializeActivitiesToDataObject : IServiceProvider * System.Workflow.ComponentModel.Activity[] -> System.Windows.Forms.IDataObject
Public Shared Function SerializeActivitiesToDataObject (serviceProvider As IServiceProvider, activities As Activity()) As IDataObject

参数

serviceProvider
IServiceProvider

组件序列化服务。

activities
Activity[]

要序列化的活动的数组。

返回

包含要序列化的活动的 IDataObject

适用于