SettableOleDataObject::DAdvise Method (array<FORMATETC>^, UInt32, IAdviseSink^, UInt32)

 

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

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
virtual int DAdvise(
	array<FORMATETC>^ pFormatetc,
	unsigned int ADVF,
	IAdviseSink^ pAdvSink,
	[OutAttribute] unsigned int% pdwConnection
) sealed

Parameters

pFormatetc
Type: array<Microsoft.VisualStudio.OLE.Interop::FORMATETC>^

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

ADVF
Type: System::UInt32

A set of flags that control the advise connection.

pAdvSink
Type: Microsoft.VisualStudio.OLE.Interop::IAdviseSink^

The advise sink.

pdwConnection
Type: System::UInt32

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

Return Value

Type: System::Int32

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

Return to top
Show: