CompositeActivityDesigner.SerializeActivitiesToDataObject 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將活動陣列序列化為 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,其中包含已序列化的活動。