C# Класс BExplorer.Shell.DataObject

Наследование: System.Runtime.InteropServices.ComTypes.IDataObject, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
DAdvise ( System.Runtime.InteropServices.ComTypes.FORMATETC &pFormatetc, ADVF advf, IAdviseSink adviseSink, int &connection ) : int
DUnadvise ( int connection ) : void
DataObject ( ) : System

Creates an empty instance of DataObject.

Dispose ( ) : void

Releases resources.

EnumDAdvise ( IEnumSTATDATA &enumAdvise ) : int
EnumFormatEtc ( DATADIR direction ) : IEnumFORMATETC

Gets an enumerator for the formats contained in this DataObject.

GetCanonicalFormatEtc ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.FORMATETC &formatOut ) : int
GetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void

Gets the specified data.

GetDataHere ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void
QueryGetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format ) : int

Determines if data of the requested format is present.

SetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium, bool release ) : void

Sets data in the specified format into storage.

Приватные методы

Метод Описание
ClearStorage ( ) : void

Clears the internal storage array.

ClearStorage is called by the IDisposable.Dispose method implementation to make sure all unmanaged references are released properly.

CopyMedium ( System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : System.Runtime.InteropServices.ComTypes.STGMEDIUM

Creates a copy of the STGMEDIUM structure.

CopyStgMedium ( System.Runtime.InteropServices.ComTypes.STGMEDIUM &pcstgmedSrc, System.Runtime.InteropServices.ComTypes.STGMEDIUM &pstgmedDest ) : int
Dispose ( bool disposing ) : void

Releases resources.

ReleaseStgMedium ( System.Runtime.InteropServices.ComTypes.STGMEDIUM &pmedium ) : void

Описание методов

DAdvise() публичный Метод

public DAdvise ( System.Runtime.InteropServices.ComTypes.FORMATETC &pFormatetc, ADVF advf, IAdviseSink adviseSink, int &connection ) : int
pFormatetc System.Runtime.InteropServices.ComTypes.FORMATETC
advf ADVF
adviseSink IAdviseSink
connection int
Результат int

DUnadvise() публичный Метод

public DUnadvise ( int connection ) : void
connection int
Результат void

DataObject() публичный Метод

Creates an empty instance of DataObject.
public DataObject ( ) : System
Результат System

Dispose() публичный Метод

Releases resources.
public Dispose ( ) : void
Результат void

EnumDAdvise() публичный Метод

public EnumDAdvise ( IEnumSTATDATA &enumAdvise ) : int
enumAdvise IEnumSTATDATA
Результат int

EnumFormatEtc() публичный Метод

Gets an enumerator for the formats contained in this DataObject.
public EnumFormatEtc ( DATADIR direction ) : IEnumFORMATETC
direction DATADIR The direction of the data.
Результат IEnumFORMATETC

GetCanonicalFormatEtc() публичный Метод

public GetCanonicalFormatEtc ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.FORMATETC &formatOut ) : int
formatIn System.Runtime.InteropServices.ComTypes.FORMATETC
formatOut System.Runtime.InteropServices.ComTypes.FORMATETC
Результат int

GetData() публичный Метод

Gets the specified data.
public GetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void
format System.Runtime.InteropServices.ComTypes.FORMATETC The requested data format.
medium System.Runtime.InteropServices.ComTypes.STGMEDIUM When the function returns, contains the requested data.
Результат void

GetDataHere() публичный Метод

public GetDataHere ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void
format System.Runtime.InteropServices.ComTypes.FORMATETC
medium System.Runtime.InteropServices.ComTypes.STGMEDIUM
Результат void

QueryGetData() публичный Метод

Determines if data of the requested format is present.
public QueryGetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format ) : int
format System.Runtime.InteropServices.ComTypes.FORMATETC The request data format.
Результат int

SetData() публичный Метод

Sets data in the specified format into storage.
public SetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium, bool release ) : void
formatIn System.Runtime.InteropServices.ComTypes.FORMATETC The format of the data.
medium System.Runtime.InteropServices.ComTypes.STGMEDIUM The data.
release bool If true, ownership of the medium's memory will be transferred /// to this object. If false, a copy of the medium will be created and maintained, and /// the caller is responsible for the memory of the medium it provided.
Результат void