DataObject.GetFormats Method

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)

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

Implements

IDataObject.GetFormats()

ExceptionCondition
SecurityException

Attempted access in a mode other than Drop.

If data is not null, returns a one-dimensional array that contains the single string equivalent to DataFormats.FileDrop. If data is null, returns an empty string array.

Silverlight

Supported in: 5, 4

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

Community Additions

ADD
Show: