Partager via


SettableOleDataObject.DAdvise Method

Definition

Establishes a connection between the data object and the advise sink.

public:
 virtual int DAdvise(cli::array <Microsoft::VisualStudio::OLE::Interop::FORMATETC> ^ pFormatetc, System::UInt32 ADVF, Microsoft::VisualStudio::OLE::Interop::IAdviseSink ^ pAdvSink, [Runtime::InteropServices::Out] System::UInt32 % pdwConnection);
public int DAdvise (Microsoft.VisualStudio.OLE.Interop.FORMATETC[] pFormatetc, uint ADVF, Microsoft.VisualStudio.OLE.Interop.IAdviseSink pAdvSink, out uint pdwConnection);
abstract member DAdvise : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] * uint32 * Microsoft.VisualStudio.OLE.Interop.IAdviseSink * uint32 -> int
override this.DAdvise : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] * uint32 * Microsoft.VisualStudio.OLE.Interop.IAdviseSink * uint32 -> int
Public Function DAdvise (pFormatetc As FORMATETC(), ADVF As UInteger, pAdvSink As IAdviseSink, ByRef pdwConnection As UInteger) As Integer

Parameters

pFormatetc
FORMATETC[]

The structure that defines the format, target device, aspect, and medium that will be used for future notifications.

ADVF
UInt32

A set of flags that control the advise connection.

pAdvSink
IAdviseSink

The advise sink.

pdwConnection
UInt32

[out] The token of the connection. This token is used to delete the connection later.

Returns

If the method succeeds, Microsoft.VisualStudio.VSConstants.S_OK; otherwise, an error code.

Implements

Applies to