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

IDataObject.GetData Method (String)

Retrieves a data object in a specified format; the data format is specified by a string.

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

Object GetData (
	string format
)
Object GetData (
	String format
)
function GetData (
	format : String
) : Object
You cannot use methods in XAML.

Parameters

format

A string that specifies what format to retrieve the data as. See the DataFormats class for a set of predefined data formats.

Return Value

A data object with the data in the specified format, or null if the data is not available in the specified format.

For an implementation of this method, see GetData.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft