IDataObject::GetFormats Method (Boolean)
.NET Framework (current version)
Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether or not to also include formats that the data can be automatically converted to.
Assembly: PresentationCore (in PresentationCore.dll)
[SecurityCriticalAttribute] [UIPermissionAttribute(SecurityAction::InheritanceDemand, Clipboard = UIPermissionClipboard::AllClipboard)] array<String^>^ GetFormats( bool autoConvert )
Parameters
- autoConvert
-
Type:
System::Boolean
true to retrieve all formats that data stored in this data object is stored in, or can be 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: array<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
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Show: