Partilhar via


ClipboardObject.IDataObject.SetData(FORMATETC, STGMEDIUM, Boolean) Method

Definition

Transfers data to the object that implements this method. This method is called by an object that contains a data source.

 virtual void System.Runtime.InteropServices.ComTypes.IDataObject.SetData(System::Runtime::InteropServices::ComTypes::FORMATETC % formatIn, System::Runtime::InteropServices::ComTypes::STGMEDIUM % medium, bool release) = System::Runtime::InteropServices::ComTypes::IDataObject::SetData;
void IDataObject.SetData (ref System.Runtime.InteropServices.ComTypes.FORMATETC formatIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium, bool release);
override this.System.Runtime.InteropServices.ComTypes.IDataObject.SetData : FORMATETC * STGMEDIUM * bool -> unit
Sub SetData (ByRef formatIn As FORMATETC, ByRef medium As STGMEDIUM, release As Boolean) Implements IDataObject.SetData

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, 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

Applies to