IDataObject.GetFormats Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a list of all formats that the data in this data object is stored in, or can be converted to.

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

[UIPermissionAttribute(SecurityAction.InheritanceDemand, Clipboard = UIPermissionClipboard.AllClipboard)]
string[] GetFormats()

Return Value

Type: System.String[]

An array of strings, with each string specifying the name of a format supported by this data object.

For an implementation of this method, see GetFormats.

.NET Framework
Available since 3.0
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top