Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Establishes a connection between the data object and the advise sink.
Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
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
)
public:
virtual int DAdvise(
    array<FORMATETC>^ pFormatetc, 
    unsigned int ADVF, 
    IAdviseSink^ pAdvSink, 
    [OutAttribute] unsigned int% pdwConnection
) sealed
abstract DAdvise : 
        pFormatetc:FORMATETC[] * 
        ADVF:uint32 * 
        pAdvSink:IAdviseSink * 
        pdwConnection:uint32 byref -> int  
override DAdvise : 
        pFormatetc:FORMATETC[] * 
        ADVF:uint32 * 
        pAdvSink:IAdviseSink * 
        pdwConnection:uint32 byref -> int
public final function DAdvise(
    pFormatetc : FORMATETC[], 
    ADVF : uint, 
    pAdvSink : IAdviseSink, 
    pdwConnection : uint
) : int
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: UInt32- A set of flags that control the advise connection. 
- pAdvSink 
 Type: Microsoft.VisualStudio.OLE.Interop.IAdviseSink- The advise sink. 
- pdwConnection 
 Type: UInt32%- [out] The token of the connection. This token is used to delete the connection later. 
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.