Export (0) Print
Expand All

DataObject.GetFormats Method (Boolean)

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. Always throws an exception.

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

public string[] GetFormats(
	bool autoConvert
)

Parameters

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

Return Value

Type: System.String[]
Always throws an exception.

Implements

IDataObject.GetFormats(Boolean)

ExceptionCondition
NotImplementedException

Not implemented.

SecurityException

Attempted access in a mode other than Drop.

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:
© 2015 Microsoft