共用方式為


OleDataObject Class

Definition

Provides a managed class that implements the IOleDataObject interface.

public ref class OleDataObject : System::Windows::Forms::DataObject, Microsoft::VisualStudio::OLE::Interop::IDataObject
public class OleDataObject : System.Windows.Forms.DataObject, Microsoft.VisualStudio.OLE.Interop.IDataObject
type OleDataObject = class
    inherit DataObject
    interface IDataObject
Public Class OleDataObject
Inherits DataObject
Implements IDataObject
Inheritance
OleDataObject
Implements

Constructors

OleDataObject()

Initializes a new instance of OleDataObject.

OleDataObject(IDataObject)

Initializes a new instance of OleDataObject for the specified object implementing IDataObject.

OleDataObject(IDataObject)

Initializes a new instance of OleDataObject for the specified IDataObject.

OleDataObject(IDataObject)

Initializes a new instance of OleDataObject for the specified IDataObject.

Explicit Interface Implementations

IDataObject.DAdvise(FORMATETC[], UInt32, IAdviseSink, UInt32)

Establishes a connection between the data object and a caller object implementing IAdviseSink.

IDataObject.DUnadvise(UInt32)

Terminates an advise connection previously established through DAdvise.

IDataObject.EnumDAdvise(IEnumSTATDATA)

Creates an enumerator to iterate through the current advisory connections.

IDataObject.EnumFormatEtc(UInt32, IEnumFORMATETC)

Creates an enumerator to iterate through the FORMATETC structures supported by the data object.

IDataObject.GetCanonicalFormatEtc(FORMATETC[], FORMATETC[])

Retrieves a FORMATETC structure that is logically equivalent to one that is more complex.

IDataObject.GetData(FORMATETC[], STGMEDIUM[])

Transfers data from the data object to the client. The pformatetcIn parameter must specify a storage medium type of TYMED_MFPICT.

IDataObject.GetDataHere(FORMATETC[], STGMEDIUM[])

Transfers data from the data object to the client. The client must allocate the STGMEDIUM structure.

IDataObject.QueryGetData(FORMATETC[])

Determines whether the data object supports a particular FORMATETC structure for transferring data.

IDataObject.SetData(FORMATETC[], STGMEDIUM[], Int32)

Transfers data from the client to the data object.

Applies to