Export (0) Print
Expand All

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

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

void SetData (
	Type format,
	Object data
)
void SetData (
	Type format, 
	Object data
)
function SetData (
	format : Type, 
	data : Object
)
You cannot use methods in XAML.

Parameters

format

A Type that specifies what format to store the data in. See the DataFormats class for a set of predefined data formats.

data

The data to store in this data object.

For an implementation of this method, see SetData.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft