Home
Library
Learn
Downloads
Support
Community
Forums
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Windows Namespace
IDataObject Interface
IDataObject Methods
SetData Method
SetData Method (Object)
SetData Method (String, Object)
SetData Method (Type, Object)
SetData Method (String, Object, Boolean)
Related Links
GetData Method
GetDataPresent Method
GetFormats Method
IDataObject
.
.
::
.
SetData Method
This page is specific to:
.NET Framework Version:
3.0
3.5
4.0
.NET Framework Class Library
IDataObject
.
.
::
.
SetData Method
Stores the specified data in this data object.
Overload List
Name
Description
SetData(Object)
Stores the specified data in this data object, automatically converting the data format from the source object type.
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.
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
class.
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 may be converted to another format on retrieval.
Top
See Also
Reference
IDataObject Interface
IDataObject Members
System.Windows Namespace
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Yes
No
Do you like the tabbed code blocks?
Yes
No
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View