IDataObject.GetDataPresent Method

Checks to see 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.

  NameDescription
Public method GetDataPresent(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.
Public method GetDataPresent(Type) Checks to see whether the data is available in, or can be converted to, a specified format. The data format is specified by a Type object.
Public method GetDataPresent(String, Boolean) Checks to see 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 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft