IDataObject Methods
Collapse the table of content
Expand the table of content

IDataObject Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

  NameDescription
Public method GetData(String) Retrieves a data object in a specified format; the data format is specified by a string.
Public method GetData(Type) Retrieves a data object in a specified format; the data format is specified by a Type object.
Public method GetData(String, Boolean) Retrieves a data object in a specified format, and optionally, converts the data to the specified format.
Public method GetDataPresent(String) Checks 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 whether the data is available in, or can be converted to, a specified format. If the data is not already available in the specified format, a Boolean flag indicates whether to check if the data can be converted to the specified format.
Public method GetFormats() Returns a list of all formats that the data in this data object is stored in, or can be converted to.
Public method GetFormats(Boolean) Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether to also include formats that the data can be automatically converted to.
Public method SetData(Object) Stores the specified data in this data object, and automatically converts the data format from the source object type.
Public method SetData(String, Object) Stores the specified data in this data object, using one or more specified data formats. The data format is specified by a string.
Public method SetData(Type, Object) Stores the specified data in this data object, using one or more specified data formats. The data format is specified by a Type class.
Public method SetData(String, Object, Boolean) Stores the specified data in this data object, using one or more specified data formats. This overload includes a Boolean flag to indicate whether the data may be converted to another format on retrieval.
Top

Show:
© 2017 Microsoft