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
dataobjectThe 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
formatTypeA Type representing the format associated with the data. See DataFormats for predefined formats.
dataobjectThe 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
formatstringThe format associated with the data. See DataFormats for predefined formats.
dataobjectThe 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
formatstringThe format associated with the data. See DataFormats for predefined formats.
dataobjectThe data to store.
autoConvertbooltrue to allow the data to be converted to another format; otherwise, false.