Поделиться через


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

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.

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