Compartir a través de


DataObject.GetDataPresent Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Checks to see whether the data is available in, or can be converted to, a specified format. Use only the GetDataPresent(String) signature; the others always throw exceptions.

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

Overload List

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

Top