Method GetDataPresent
GetDataPresent(Type)
Determines whether data stored in this instance is associated with, or can be converted to, the specified format.
public bool GetDataPresent(Type format)
Parameters
format
TypeA Type representing the format for which to check. See DataFormats for predefined formats.
Returns
- bool
true if data stored in this instance is associated with, or can be converted to, the specified format; otherwise, false.
GetDataPresent(string)
Determines whether data stored in this instance is associated with, or can be converted to, the specified format.
public bool GetDataPresent(string format)
Parameters
format
stringThe format for which to check. See DataFormats for predefined formats.
Returns
- bool
true if data stored in this instance is associated with, or can be converted to, the specified format; otherwise false.
GetDataPresent(string, bool)
Determines whether data stored in this instance is associated with the specified format, using a Boolean value to determine whether to convert the data to the format.
public bool GetDataPresent(string format, bool autoConvert)
Parameters
format
stringThe format for which to check. See DataFormats for predefined formats.
autoConvert
booltrue to determine whether data stored in this instance can be converted to the specified format; false to check whether the data is in the specified format.
Returns
- bool
true if the data is in, or can be converted to, the specified format; otherwise, false.