OleDataObject::IDataObject::SetData Method (array<FORMATETC>^, array<STGMEDIUM>^, Int32)
Transfers data from the client to the data object.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
private: virtual void SetData( array<FORMATETC>^ pFormatetc, array<STGMEDIUM>^ pmedium, int fRelease ) sealed = IDataObject::SetData
Parameters
- pFormatetc
-
Type:
array<Microsoft.VisualStudio.OLE.Interop::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_STORAGE
TYMED_STREAM
TYMED_HGLOBAL
TYMED_FILE
- pmedium
-
Type:
array<Microsoft.VisualStudio.OLE.Interop::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
-
Type:
System::Int32
If TRUE, the data object called, which implements SetData, owns the storage medium after the call returns.