DataObject.GetDataPresent Method

 
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.

Determines whether the data is available in, or can be converted to, a specified format.

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

NameDescription
System_CAPS_pubmethodGetDataPresent(String)

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

System_CAPS_pubmethodGetDataPresent(String, Boolean)

Determines whether the data is available in, or can be converted to, a specified format. A Boolean flag indicates whether to check if the data can be converted to the specified format if it is not available in that format.

System_CAPS_pubmethodGetDataPresent(Type)

Determines whether the data is available in, or can be converted to, a format specified by a Type object.

Call GetDataPresent to determine whether a 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.

Return to top
Show: