GetFormats Method (Boolean)
Collapse the table of content
Expand the table of content

IDataObject.GetFormats Method (Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether to also include formats that the data can be automatically converted to.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

string[] GetFormats(
	bool autoConvert
)

Parameters

autoConvert
Type: System.Boolean
true to retrieve all formats that the data in this data object is stored in, or can be converted to; false to retrieve only the formats in which the data in this data object is stored (excludes formats that the data is not stored in, but can be automatically converted to).

Return Value

Type: System.String []
An array of strings, with each string specifying the name of a format that is supported by this data object.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft