Compartir a través de


SettableOleDataObject.DAdvise Method

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

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

Syntax

'Declaración
Public Function DAdvise ( _
    pFormatetc As FORMATETC(), _
    ADVF As UInteger, _
    pAdvSink As IAdviseSink, _
    <OutAttribute> ByRef pdwConnection As UInteger _
) As Integer
public int DAdvise(
    FORMATETC[] pFormatetc,
    uint ADVF,
    IAdviseSink pAdvSink,
    out uint pdwConnection
)

Parameters

  • ADVF
    Type: System.UInt32
    A set of flags that control the advise connection.
  • 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.

Implements

IDataObject.DAdvise(array<FORMATETC[], UInt32, IAdviseSink, UInt32%)

.NET Framework Security

See Also

Reference

SettableOleDataObject Class

Microsoft.VisualStudio.Shell Namespace