C# Class BExplorer.Shell.DataObject

Inheritance: System.Runtime.InteropServices.ComTypes.IDataObject, IDisposable
Afficher le fichier Open project: Gainedge/BetterExplorer

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

DAdvise() public méthode

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
Résultat int

DUnadvise() public méthode

public DUnadvise ( int connection ) : void
connection int
Résultat void

DataObject() public méthode

Creates an empty instance of DataObject.
public DataObject ( ) : System
Résultat System

Dispose() public méthode

Releases resources.
public Dispose ( ) : void
Résultat void

EnumDAdvise() public méthode

public EnumDAdvise ( IEnumSTATDATA &enumAdvise ) : int
enumAdvise IEnumSTATDATA
Résultat int

EnumFormatEtc() public méthode

Gets an enumerator for the formats contained in this DataObject.
public EnumFormatEtc ( DATADIR direction ) : IEnumFORMATETC
direction DATADIR The direction of the data.
Résultat IEnumFORMATETC

GetCanonicalFormatEtc() public méthode

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
Résultat int

GetData() public méthode

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.
Résultat void

GetDataHere() public méthode

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
Résultat void

QueryGetData() public méthode

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.
Résultat int

SetData() public méthode

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.
Résultat void