GetData Method (String, Boolean)
Collapse the table of content
Expand the table of content

IDataObject.GetData Method (String, Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

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

Object GetData(
	string format,
	bool autoConvert
)

Parameters

format
Type: System.String
A string that specifies the format in which to retrieve the data.
autoConvert
Type: System.Boolean
true to attempt to automatically convert the data to the specified format; false to perform no data format conversion.
If this parameter is false, the method returns data in the specified format if it is available; or returns null if the data is not available in the specified format.

Return Value

Type: System.Object
A data object that has the data in the specified format; or null, if the data is not available in the specified format.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft