Determines whether data stored in this System.Windows.Forms.DataObject is associated with, or can be converted to, the specified format.
- format
- The format to check for. See System.Windows.Forms.DataFormats for predefined formats.
true if data stored in this System.Windows.Forms.DataObject is associated with, or can be converted to, the specified format; otherwise, false.
Call this method to determine whether a format exists before calling DataObject.GetData(string, bool). Call DataObject.GetFormats(bool) for the formats that are available in this System.Windows.Forms.DataObject.
Data can be converted to another format if it was stored specifying that conversion is allowed, and if the requested format is compatible with the stored format. For example, data stored as Unicode can be converted to text.
If no data can be retrieved, no exception will be thrown. Instead, false will be returned.