Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Runtime.​InteropServices.​ComTypes.​IDataObject

Assembly: System.Runtime.InteropServices

Provides the managed definition of the <see langword="IDataObject" /> interface.

Methods

public int
DAdvise​(FORMATETC& pFormatetc, ADVF advf, IAdviseSink adviseSink, Int32& connection)
public void
DUnadvise​(int connection)
connection A DWORD token that specifies the connection to remove. Use the value returned by <see cref="M:System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise(System.Runtime.InteropServices.ComTypes.FORMATETC@,System.Runtime.InteropServices.ComTypes.ADVF,System.Runtime.InteropServices.ComTypes.IAdviseSink,System.Int32@)" /> when the connection was originally established.
Destroys a notification connection that had been previously established.
public int
EnumDAdvise​(IEnumSTATDATA& enumAdvise)
EnumFormatEtc​(DATADIR direction)
direction One of the <see cref="T:System.Runtime.InteropServices.ComTypes.DATADIR" /> values that specifies the direction of the data.
Returns This method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following: <list type="table"> <listheader> <term> Value</term> <description> Description</description> </listheader> <item> <term> S_OK</term> <description> The enumerator object was successfully created.</description> </item> <item> <term> E_NOTIMPL</term> <description> The direction specified by the <paramref name="direction" /> parameter is not supported.</description> </item> <item> <term> OLE_S_USEREG</term> <description> Requests that OLE enumerate the formats from the registry.</description> </item> </list>
Creates an object for enumerating the <see cref="T:System.Runtime.InteropServices.ComTypes.FORMATETC" /> structures for a data object. These structures are used in calls to <see cref="M:System.Runtime.InteropServices.ComTypes.IDataObject.GetData(System.Runtime.InteropServices.ComTypes.FORMATETC@,System.Runtime.InteropServices.ComTypes.STGMEDIUM@)" /> or <see cref="M:System.Runtime.InteropServices.ComTypes.IDataObject.SetData(System.Runtime.InteropServices.ComTypes.FORMATETC@,System.Runtime.InteropServices.ComTypes.STGMEDIUM@,System.Boolean)" /> .
public int
GetCanonicalFormatEtc​(FORMATETC& formatIn, FORMATETC& formatOut)
public void
GetData​(FORMATETC& format, STGMEDIUM& medium)
public void
GetDataHere​(FORMATETC& format, STGMEDIUM& medium)
public int
QueryGetData​(FORMATETC& format)
public void
SetData​(FORMATETC& formatIn, STGMEDIUM& medium, bool release)