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.GetFormats (Boolean)

Gets a list of all formats that data stored in this instance is associated with or can be converted to, using autoConvert to determine whether to retrieve all formats that the data can be converted to or only native data formats.

[Visual Basic]
Overloads Function GetFormats( _
   ByVal autoConvert As Boolean _
) As String ()
[C#]
string[] GetFormats(
   bool autoConvert
);
[C++]
String* GetFormats(
   bool autoConvert
) [] = 0;
[JScript]
function GetFormats(
   autoConvert : Boolean
) : String[];

Parameters

autoConvert
true to retrieve all formats that data stored in this instance is associated with, or can be converted to; false to retrieve only native data formats.

Return Value

An array of the names that represents a list of all formats that are supported by the data stored in this object.

Remarks

Call this method to get the supported data formats before calling GetData. See DataFormats for the predefined formats.

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 GetFormats.

See Also

IDataObject Interface | IDataObject Members | System.WinForms Namespace | IDataObject.GetFormats Overload List | GetFormats | GetData