System.Windows.Forms.IDataObject.SetData Method

Stores the specified data and its associated format in this instance.

Syntax

public void SetData (string format, object data)

Parameters

format
The format associated with the data. See System.Windows.Forms.DataFormats for predefined formats.
data
The data to store.

Remarks

If you do not know the format of the target application, you can store data in multiple formats using this method.

Data stored using this method can be converted to a compatible format when it is retrieved.

For an implementation of this method, see DataObject.SetData(string, bool, object).

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0