NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IDataObject.GetDataPresent (String)

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 String _
) As Boolean
[C#]
bool GetDataPresent(
   string format
);
[C++]
bool GetDataPresent(
   String* format
) = 0;
[JScript]
function GetDataPresent(
   format : String
) : Boolean;

Parameters

format
The format to check for. See DataFormats for predefined formats.

Return Value

true if data stored in this instance is associated with, or can be converted to, the specified format; otherwise false.

Remarks

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.

See Also

IDataObject Interface | IDataObject Members | System.WinForms Namespace | IDataObject.GetDataPresent Overload List | SetData | GetData | GetDataPresent