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
'Usage
Dim instance As ClipboardObject 
Dim formatIn As FORMATETC 
Dim medium As STGMEDIUM 
Dim release As Boolean 

CType(instance, IDataObject).SetData(formatIn, _
    medium, release)
void IDataObject.SetData(
    ref FORMATETC formatIn,
    ref STGMEDIUM medium,
    bool release
)
private:
virtual void SetData(
    FORMATETC% formatIn, 
    STGMEDIUM% medium, 
    bool release
) sealed = IDataObject::SetData
JScript does not support explicit interface implementations.

Parameters

  • 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

See Also

Reference

ClipboardObject Class

ClipboardObject Members

Microsoft.VisualStudio.Data.Framework Namespace