Determines whether data stored in this instance is associated with, or can be converted to, the specified format.
[Visual Basic] Overloads Function GetDataPresent( _ ByVal format As Type _ ) As Boolean [C#] bool GetDataPresent( Type format ); [C++] bool GetDataPresent( Type* format ) = 0; [JScript] function GetDataPresent( format : Type ) : Boolean;
true if data stored in this instance is associated with, or can be converted to, the specified format; otherwise, false.
Call this method to determine whether a format exists in this DataObject instance before calling GetData. Call GetFormats for the formats that are available in this instance.
Note Data can be converted to another format if it was stored specifying that conversion is allowed, and if the requested format is compatable with the stored format. For example, data stored as Unicode can be converted to text.
For an implementation of this method, see GetDataPresent.
IDataObject Interface | IDataObject Members | System.WinForms Namespace | IDataObject.GetDataPresent Overload List | SetData | GetData | GetDataPresent