DataObject.IDataObject.SetData(FORMATETC, STGMEDIUM, Boolean) Method
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.
virtual void System.Runtime.InteropServices.ComTypes.IDataObject.SetData(System::Runtime::InteropServices::ComTypes::FORMATETC % pFormatetcIn, System::Runtime::InteropServices::ComTypes::STGMEDIUM % pmedium, bool fRelease) = System::Runtime::InteropServices::ComTypes::IDataObject::SetData;
[System.Security.SecurityCritical]
void IDataObject.SetData (ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetcIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM pmedium, bool fRelease);
void IDataObject.SetData (ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetcIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM pmedium, bool fRelease);
[<System.Security.SecurityCritical>]
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.SetData : FORMATETC * STGMEDIUM * bool -> unit
override this.System.Runtime.InteropServices.ComTypes.IDataObject.SetData : FORMATETC * STGMEDIUM * bool -> unit
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.SetData : FORMATETC * STGMEDIUM * bool -> unit
override this.System.Runtime.InteropServices.ComTypes.IDataObject.SetData : FORMATETC * STGMEDIUM * bool -> unit
Sub SetData (ByRef pFormatetcIn As FORMATETC, ByRef pmedium As STGMEDIUM, fRelease As Boolean) Implements IDataObject.SetData
- pFormatetcIn
- 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.
- pmedium
- STGMEDIUM
A STGMEDIUM structure, passed by reference, that defines the storage medium in which the data is being passed.
- fRelease
- 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.
- Attributes
This member is an explicit interface member implementation. It can be used only when the DataObject instance is cast to an IDataObject interface.
Προϊόν | Εκδόσεις |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET σχόλια
.NET είναι ένα έργο ανοιχτού κώδικα. Επιλέξτε μια σύνδεση για να παρέχετε σχόλια: