This documentation is archived and is not being maintained.

IDataObject.GetDataPresent Method (String)

Checks to see whether the data is available in, or can be converted to, a specified format; the data format is specified by a string.

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

bool GetDataPresent (
	string format
)
boolean GetDataPresent (
	String format
)
function GetDataPresent (
	format : String
) : boolean
You cannot use methods in XAML.

Parameters

format

A string that specifies what format to check for. See the DataFormats class for a set of pre-defined data formats.

Return Value

true if the data is in, or can be converted to, the specified format; otherwise, false.

For an implementation of this method, see GetDataPresent.

 

Call GetDataPresent to determine whether a specified format is available in this data object before calling GetData.

 

Call GetFormats to obtain a list of all the formats that are available in this data object.

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
Show: