IDataObject Interface

Definition

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

public interface class IDataObject
[System.Runtime.InteropServices.Guid("0000010e-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IDataObject
type IDataObject = interface
Public Interface IDataObject
Derived
Attributes

Methods

DAdvise(IntPtr, UInt32, IntPtr, UInt32)

Creates a notification connection between a data object implementing the IDataObject interface and a caller object, letting the caller receive notification of changes in the data for the data object.

DUnadvise(UInt32)

Destroys a notification connection that was created by an earlier call to the DAdvise(IntPtr, UInt32, IntPtr, UInt32) method.

EnumDAdvise(IntPtr)

Retrieves a pointer to an object that can enumerate the notification connections that are currently maintained by this IDataObject interface.

EnumFormatEtc(UInt32, IntPtr)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

GetCanonicalFormatEtc(IntPtr, IntPtr)

Retrieves a pointer to a standard FORMATETC structure that is logically equivalent to, but not necessarily equal to, the FORMATETC structure that is referenced by the a parameter.

GetData(FORMATETC, STGMEDIUM)

Obtains data from a source data object. The GetData(FORMATETC, STGMEDIUM) method, which is called by a data consumer, renders the data described in the specified FORMATETC structure and transfers it through the specified STGMEDIUM structure. The caller then assumes responsibility for releasing the STGMEDIUM structure.

GetDataHere(FORMATETC, STGMEDIUM)

Obtains data from a source data object. This method, which is called by a data consumer, differs from the GetData(FORMATETC, STGMEDIUM) method in that the caller must allocate and free the specified storage medium.

QueryGetData(IntPtr)

Determines whether the data object is capable of rendering the data described in the FORMATETC structure. Objects attempting a paste or drop operation can call this method before calling GetData(FORMATETC, STGMEDIUM) to get an indication of whether the operation may be successful.

SetData(IntPtr, IntPtr, Int32)

Transfers the data that is contained in the STGMEDIUM structure, referenced by a, to this instance of the IDataObject interface.

Applies to