共用方式為


IDataObject.DAdvise Method

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'宣告
Function DAdvise ( _
    pFormatetc As FORMATETC(), _
    ADVF As UInteger, _
    pAdvSink As IAdviseSink, _
    <OutAttribute> ByRef pdwConnection As UInteger _
) As Integer
'用途
Dim instance As IDataObject
Dim pFormatetc As FORMATETC()
Dim ADVF As UInteger
Dim pAdvSink As IAdviseSink
Dim pdwConnection As UInteger
Dim returnValue As Integer

returnValue = instance.DAdvise(pFormatetc, _
    ADVF, pAdvSink, pdwConnection)
int DAdvise(
    FORMATETC[] pFormatetc,
    uint ADVF,
    IAdviseSink pAdvSink,
    out uint pdwConnection
)
int DAdvise(
    [InAttribute] array<FORMATETC>^ pFormatetc, 
    [InAttribute] unsigned int ADVF, 
    [InAttribute] IAdviseSink^ pAdvSink, 
    [OutAttribute] unsigned int% pdwConnection
)
abstract DAdvise : 
        pFormatetc:FORMATETC[] * 
        ADVF:uint32 * 
        pAdvSink:IAdviseSink * 
        pdwConnection:uint32 byref -> int 
function DAdvise(
    pFormatetc : FORMATETC[], 
    ADVF : uint, 
    pAdvSink : IAdviseSink, 
    pdwConnection : uint
) : int

Parameters

Return Value

Type: System.Int32

Remarks

For information on the COM interface, see IDataObject::DAdvise

.NET Framework Security

See Also

Reference

IDataObject Interface

IDataObject Members

Microsoft.VisualStudio.OLE.Interop Namespace