This documentation is archived and is not being maintained.

IDataObject Interface

Provides a format-independent mechanism for transferring data.

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

public interface IDataObject
Interfaces cannot be used directly in XAML; see types that implement this interface.

The IDataObject interface is used by the Clipboard class for data transfer operations like drag-and-drop.

When implemented by a class, the IDataObject methods enable a single data object to offer data in multiple formats. Offering data in multiple formats tends to make the data usable by a wider variety of applications than if only a single data format were supported.

The DataObject class provides a basic implementation of the IDataObject interface.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0