Method GetData
GetData(Type)
Retrieves the data associated with the specified class type format.
public object GetData(Type format)
Parameters
formatTypeA Type representing the format of the data to retrieve. See DataFormats for predefined formats.
Returns
- object
The data associated with the specified format, or null.
GetData(string)
Retrieves the data associated with the specified data format.
public object GetData(string format)
Parameters
formatstringThe format of the data to retrieve. See DataFormats for predefined formats.
Returns
- object
The data associated with the specified format, or null.
GetData(string, bool)
Retrieves the data associated with the specified data format, using a Boolean to determine whether to convert the data to the format.
public object GetData(string format, bool autoConvert)
Parameters
formatstringThe format of the data to retrieve. See DataFormats for predefined formats.
autoConvertbooltrue to convert the data to the specified format; otherwise, false.
Returns
- object
The data associated with the specified format, or null.
GetData(string, int)
Retrieves the data associated with the specified data format at the specified index.
public MemoryStream GetData(string format, int index)
Parameters
formatstringThe format of the data to retrieve. See DataFormats for predefined formats.
indexintThe index of the data to retrieve.
Returns
- MemoryStream
A MemoryStream containing the raw data for the specified data format at the specified index.