Object. Set Data(FORMATETC, STGMEDIUM, Boolean) Method
Transfers data to the object that implements this method. This method is called by an object that contains a data source.
public: void SetData(System::Runtime::InteropServices::ComTypes::FORMATETC % formatIn, System::Runtime::InteropServices::ComTypes::STGMEDIUM % medium, bool release);
public void SetData (ref System.Runtime.InteropServices.ComTypes.FORMATETC formatIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium, bool release);
abstract member SetData : FORMATETC * STGMEDIUM * bool -> unit
Public Sub SetData (ByRef formatIn As FORMATETC, ByRef medium As STGMEDIUM, release As Boolean)
A FORMATETC structure, passed by reference, that defines the format used by the data object when interpreting the data contained in the storage medium.
A STGMEDIUM structure, passed by reference, that defines the storage medium in which the data is being passed.
true to specify that the data object called, which implements SetData(FORMATETC, STGMEDIUM, Boolean), 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
false to specify that the caller retains ownership of the storage medium, and the data object called uses the storage medium for the duration of the call only.
For more information about
IDataObject::SetData, see the MSDN Library.