Method SetData
SetData(object)
Stores the specified data in this instance, using the class of the data for the format.
public void SetData(object data)
Parameters
data
objectThe data to store.
SetData(Type, object)
Stores the specified data and its associated class type in this instance.
public void SetData(Type format, object data)
Parameters
format
TypeA Type representing the format associated with the data. See DataFormats for predefined formats.
data
objectThe data to store.
SetData(string, object)
Stores the specified data and its associated format in this instance.
public void SetData(string format, object data)
Parameters
format
stringThe format associated with the data. See DataFormats for predefined formats.
data
objectThe data to store.
SetData(string, object, bool)
Stores the specified data and its associated format in this instance, using a Boolean value to specify whether the data can be converted to another format.
public void SetData(string format, object data, bool autoConvert)
Parameters
format
stringThe format associated with the data. See DataFormats for predefined formats.
data
objectThe data to store.
autoConvert
booltrue to allow the data to be converted to another format; otherwise, false.