Udostępnij za pośrednictwem


OleDataObject.IDataObject.SetData(FORMATETC[], STGMEDIUM[], Int32) Method

Definition

Transfers data from the client to the data object.

 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 Microsoft.VisualStudio.OLE.Interop.IDataObject.SetData(std::Array <Microsoft::VisualStudio::OLE::Interop::FORMATETC> const & pFormatetc, std::Array <Microsoft::VisualStudio::OLE::Interop::STGMEDIUM> const & pmedium, int fRelease);
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[]

Pointer to the FORMATETC structure that defines the format, medium, and target device to use when passing the data. Only one medium can be specified in the tymed member of the FORMATETC structure. These values are valid:TYMED_STORAGETYMED_STREAMTYMED_HGLOBALTYMED_FILE

pmedium
STGMEDIUM[]

Pointer to the STGMEDIUM structure that defines the storage medium containing the data being transferred. The medium must be allocated by the caller and filled in by GetDataHere. The caller must also free the medium. The implementation of this method must always supply a value of NULL for the punkForRelease member of the STGMEDIUM structure to which this parameter points.

fRelease
Int32

If TRUE, the data object called, which implements SetData, owns the storage medium after the call returns.

Implements

Applies to