Dela via


OleDataObject Members

Include Protected Members
Include Inherited Members

Provides a managed class that implements the IOleDataObject interface.

The OleDataObject type exposes the following members.

Constructors

 

Name

Description

Public method

OleDataObject

Overloaded. Initializes a new instance of OleDataObject.

Top

Methods

 

Name

Description

Public method

ContainsAudio

Indicates whether the data object contains data in the WaveAudio format. (Inherited from DataObject.)

Public method

ContainsFileDropList

Indicates whether the data object contains data that is in the FileDrop format or can be converted to that format. (Inherited from DataObject.)

Public method

ContainsImage

Indicates whether the data object contains data that is in the Bitmap format or can be converted to that format. (Inherited from DataObject.)

Public method

ContainsText

Overloaded. Indicates whether the data object contains text data.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetAudioStream

Retrieves an audio stream from the data object. (Inherited from DataObject.)

Public method

GetData

Overloaded. Returns the data associated with the specified data format.

Public method

GetDataPresent

Overloaded. Determines whether data stored in this DataObject is associated with the specified format.

Public method

GetFileDropList

Retrieves a collection of file names from the data object. (Inherited from DataObject.)

Public method

GetFormats

Overloaded. Returns a list of all formats that data stored in this DataObject is associated with or can be converted to.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetImage

Retrieves an image from the data object. (Inherited from DataObject.)

Public method

GetText

Overloaded. Retrieves text data from the data object.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

SetAudio

Overloaded. Adds data to the data object in the WaveAudio format.

Public method

SetData

Overloaded. Adds an object to the DataObject.

Public method

SetFileDropList

Adds a collection of file names to the data object in the FileDrop format. (Inherited from DataObject.)

Public method

SetImage

Adds an Image to the data object in the Bitmap format. (Inherited from DataObject.)

Public method

SetText

Overloaded. Adds text data to the data object.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IDataObject.DAdvise

Infrastructure. Creates a connection between a data object and an advisory sink. This method is called by an object that supports an advisory sink and enables the advisory sink to be notified of changes in the object's data. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.DAdvise

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

Explicit interface implemetationPrivate method

IDataObject.DUnadvise

Infrastructure. Destroys a notification connection that had been previously established. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.DUnadvise

Terminates an advise connection previously established through DAdvise(FORMATETC, UInt32, IAdviseSink, UInt32).

Explicit interface implemetationPrivate method

IDataObject.EnumDAdvise

Infrastructure. Creates an object that can be used to enumerate the current advisory connections. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.EnumDAdvise

Creates an enumerator to iterate through the current advisory connections.

Explicit interface implemetationPrivate method

IDataObject.EnumFormatEtc

Infrastructure. Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to GetData or SetData. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.EnumFormatEtc

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

Explicit interface implemetationPrivate method

IDataObject.GetCanonicalFormatEtc

Infrastructure. Provides a standard FORMATETC structure that is logically equivalent to a more complex structure. Use this method to determine whether two different FORMATETC structures would return the same data, removing the need for duplicate rendering. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.GetCanonicalFormatEtc

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

Explicit interface implemetationPrivate method

IDataObject.GetData

Infrastructure. Obtains data from a source data object. The GetData method, which is called by a data consumer, renders the data described in the specified FORMATETC structure and transfers it through the specified STGMEDIUM structure. The caller then assumes responsibility for releasing the STGMEDIUM structure. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.GetData

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

Explicit interface implemetationPrivate method

IDataObject.GetDataHere

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

Explicit interface implemetationPrivate method

IDataObject.GetDataHere

Similar to GetData(FORMATETC, STGMEDIUM), except the client must allocate the STGMEDIUM structure.

Explicit interface implemetationPrivate method

IDataObject.QueryGetData

Infrastructure. Determines whether the data object is capable of rendering the data described in the FORMATETC structure. Objects attempting a paste or drop operation can call this method before calling GetData to get an indication of whether the operation may be successful. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.QueryGetData

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

Explicit interface implemetationPrivate method

IDataObject.SetData

Infrastructure. Transfers data to the object that implements this method. This method is called by an object that contains a data source. (Inherited from DataObject.)

Explicit interface implemetationPrivate method

IDataObject.SetData

Transfers data from the client to the data object.

Top

See Also

Reference

OleDataObject Class

Microsoft.VisualStudio.Shell Namespace