Redigera

Dela via


CompositeActivityDesigner.DeserializeActivitiesFromDataObject Method

Definition

Deserializes items from an IDataObject received during a drag-and-drop operation or from the clipboard.

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

Parameters

serviceProvider
IServiceProvider

Component serialization service.

dataObj
IDataObject

Object that contains activities to deserialize.

Returns

An array of activities deserialized from an IDataObject.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

Applies to