共用方式為


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,其中包含已序列化的活動。

適用於