Share via


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

  • 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

Microsoft.VisualStudio.Data.Framework Namespace