Delen via


ClipboardObject.IDataObject.GetDataHere Method

Obtains data from a source data object. This method, which is called by a data consumer, differs from the IDataObject.GetData method in that the caller must allocate and free the specified storage medium.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Private Sub GetDataHere ( _
    ByRef format As FORMATETC, _
    ByRef medium As STGMEDIUM _
) Implements IDataObject.GetDataHere
void IDataObject.GetDataHere(
    ref FORMATETC format,
    ref STGMEDIUM medium
)
private:
virtual void GetDataHere(
    FORMATETC% format, 
    STGMEDIUM% medium
) sealed = IDataObject::GetDataHere
private abstract GetDataHere : 
        format:FORMATETC byref * 
        medium:STGMEDIUM byref -> unit  
private override GetDataHere : 
        format:FORMATETC byref * 
        medium:STGMEDIUM byref -> unit
JScript does not support explicit interface implementations.

Parameters

  • format
    Type: System.Runtime.InteropServices.ComTypes.FORMATETC%

    A reference to a FORMATETC structure, passed by reference, that defines the format, medium, and target device to use when passing the data. Only one medium can be specified in TYMED, and only the following TYMED values are valid: TYMED_ISTORAGE, TYMED_ISTREAM, TYMED_HGLOBAL, or TYMED_FILE.

  • medium
    Type: System.Runtime.InteropServices.ComTypes.STGMEDIUM%

    A STGMEDIUM, passed by reference, that defines the storage medium containing the data being transferred. The medium must be allocated by the caller and filled in by this method. The caller must also free the medium. The implementation of this method must always supply a value of nulla null reference (Nothing in Visual Basic) for the pUnkForRelease member of the STGMEDIUM structure that this parameter points to.

Implements

IDataObject.GetDataHere(FORMATETC%, STGMEDIUM%)

Remarks

This method delegates the call to the corresponding IDataObject.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