ClipboardObject.IDataObject.SetData Method
Transfers data to the object that implements this method. This method is called by an object that contains a data source.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Private Sub SetData ( _
ByRef formatIn As FORMATETC, _
ByRef medium As STGMEDIUM, _
release As Boolean _
) Implements IDataObject.SetData
void IDataObject.SetData(
ref FORMATETC formatIn,
ref STGMEDIUM medium,
bool release
)
private:
virtual void SetData(
FORMATETC% formatIn,
STGMEDIUM% medium,
bool release
) sealed = IDataObject::SetData
private abstract SetData :
formatIn:FORMATETC byref *
medium:STGMEDIUM byref *
release:bool -> unit
private override SetData :
formatIn:FORMATETC byref *
medium:STGMEDIUM byref *
release:bool -> unit
JScript does not support explicit interface implementations.
Parameters
- formatIn
Type: System.Runtime.InteropServices.ComTypes.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
Type: System.Runtime.InteropServices.ComTypes.STGMEDIUM%
A STGMEDIUM structure, passed by reference, that defines the storage medium in which the data is being passed.
- release
Type: System.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
IDataObject.SetData(FORMATETC%, STGMEDIUM%, Boolean)
Remarks
This method delegates the call to the corresponding SetData from the System.Runtime.InteropServices.ComTypes namespace, assuming that the clipboard object is wrapping an existing IDataObject.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.