ClipboardObject.IDataObject.SetData(FORMATETC[], STGMEDIUM[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transfers data to the object that implements this method. This method is called by an object that contains a data source.
virtual void Microsoft.VisualStudio.OLE.Interop.IDataObject.SetData(cli::array <Microsoft::VisualStudio::OLE::Interop::FORMATETC> ^ pFormatetc, cli::array <Microsoft::VisualStudio::OLE::Interop::STGMEDIUM> ^ pmedium, int fRelease) = Microsoft::VisualStudio::OLE::Interop::IDataObject::SetData;
void IDataObject.SetData (Microsoft.VisualStudio.OLE.Interop.FORMATETC[] pFormatetc, Microsoft.VisualStudio.OLE.Interop.STGMEDIUM[] pmedium, int fRelease);
abstract member Microsoft.VisualStudio.OLE.Interop.IDataObject.SetData : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] * Microsoft.VisualStudio.OLE.Interop.STGMEDIUM[] * int -> unit
override this.Microsoft.VisualStudio.OLE.Interop.IDataObject.SetData : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] * Microsoft.VisualStudio.OLE.Interop.STGMEDIUM[] * int -> unit
Sub SetData (pFormatetc As FORMATETC(), pmedium As STGMEDIUM(), fRelease As Integer) Implements IDataObject.SetData
Parameters
- pFormatetc
- FORMATETC[]
A FORMATETC structure, passed by reference, that defines the format used by the data object when interpreting the data contained in the storage medium.
- pmedium
- STGMEDIUM[]
A STGMEDIUM structure, passed by reference, that defines the storage medium in which the data is being passed.
- fRelease
- Int32
true to specify that the data object called, which implements SetData, owns the storage medium after the call returns. This means that the data object must free the medium after it has been used by calling the ReleaseStgMedium function. false to specify that the caller retains ownership of the storage medium, and that the data object called uses the storage medium for the duration of the call only.
Implements
Exceptions
The clipboard object is not a wrapped Microsoft.VisualStudio.OLE.Interop.IDataObject and the pFormatetc
and/or pmedium
parameters are null.
The clipboard object is not a wrapped Microsoft.VisualStudio.OLE.Interop.IDataObject and the length of the pFormatetc
and/or pmedium
structure is zero.