Method SetData
SetData(string, object)
Stores the specified data in this data object, along with one or more specified data formats. The data format is specified by a string.
public virtual void SetData(string format, object data)
Parameters
format
stringA string that specifies what format to store the data in. See the DataFormats class for a set of pre-defined data formats.
data
objectThe data to store in this data object.
SetData(object)
Stores the specified data in this data object, automatically converting the data format from the source object type.
public virtual void SetData(object data)
Parameters
data
objectThe data to store in this data object.