DataObject.GetData Method (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a data object in a format specified by a Type object.

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

Public Function GetData (
	format As Type
) As Object

Parameters

format
Type: System.Type

A Type that specifies the format for the data. For a set of predefined data formats, see the DataFormats class.

Return Value

Type: System.Object

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

Exception Condition
ArgumentNullException

format is null.

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Return to top
Show: