Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataObject.GetDataPresent Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GetDataPresent(String) Determines whether the data is available in, or can be converted to, a format specified by a string.
Public method GetDataPresent(Type) Determines whether the data is available in, or can be converted to, a format specified by a Type object.
Public method GetDataPresent(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.
Top

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.

Show:
© 2015 Microsoft