Method GetData
GetData(Type)
Retrieves the data associated with the specified class type format.
public object GetData(Type format)
Parameters
format
TypeA 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
format
stringThe 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
format
stringThe format of the data to retrieve. See DataFormats for predefined formats.
autoConvert
booltrue 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
format
stringThe format of the data to retrieve. See DataFormats for predefined formats.
index
intThe index of the data to retrieve.
Returns
- MemoryStream
A MemoryStream containing the raw data for the specified data format at the specified index.