IDataObject.SetData(FORMATETC, STGMEDIUM, Boolean) 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.
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)
Parameters
- formatIn
- 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.
- medium
- STGMEDIUM
A STGMEDIUM structure, passed by reference, that defines the storage medium in which the data is being passed.
- release
- Boolean
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 ReleaseStgMedium
function. 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.
Remarks
For more information, see IDataObject::SetData method.