System.Windows.Forms.IDataObject.SetData Method

Stores the specified data in this instance, using the class of the data for the format.

Syntax

public void SetData (object data)

Parameters

data
The data to store.

Remarks

The format is derived from the data class.

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