How do I create a DataObject?
A DataObject can be created in three different overloads of the DataObject constructor.
DataObject (object) – In this case, appropriate DataFormat is assigned to the DataObject based on the type of data stored in the object. By default, auto-conversion option is set to ’true’.
DataObject (DataFormat, object) – In this case, DataFormat is mentioned when the DataObject is created.
DataObject (DataFormat, Object, auto-conversion) – In this case, DataFormat, Object and Auto-Conversion Boolean value are mentioned when the DataObject is created.