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.SetData Method

Stores the specified data in this data object. Throws exceptions in all cases, all signatures (the data in the object is read-only to callers).

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 and automatically converts the data format from the source object type. Always throws an exception.
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. Always throws an exception.
Public method SetData(Type, Object) Stores the specified data in this data object, together with one or more specified data formats. The data format is specified by a Type class. Always throws an exception.
Public method SetData(String, Object, Boolean) Stores the specified data in this data object, together with 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. Always throws an exception.
Top

Community Additions

ADD
Show:
© 2015 Microsoft