DataObject.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.
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;
void IDataObject.SetData (ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetcIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM pmedium, bool fRelease);
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
Parameters
- 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.
Implements
Exceptions
This method does not support the type of the underlying data object.
Remarks
This member is an explicit interface member implementation. It can be used only when the DataObject is cast to an IDataObject interface.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기