DataObject.SetData Method

Stores the specified data in this data object.

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 SetData(Object) Stores the specified data in this data object, automatically determining the data format from the source object type.
Public method SetData(String, Object) Stores the specified data in this data object, along with 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, along with one or more specified data formats; the data format is specified by a Type object.
Public method SetData(String, Object, Boolean) Stores the specified data in this data object, along with one or more specified data formats. This overload includes a Boolean flag to indicate whether the data can be converted to another format on retrieval.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft