다음을 통해 공유


IDataObject.GetFormats Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Function GetFormats As String()
string[] GetFormats()

Return Value

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

Remarks

See DataObject.GetData for a practical example of how to use the DataObject implementation of this method to obtain data from a Drop event.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.