Partager via


IVsWCFReferenceManager.AdviseWCFReferenceEvents Method

Registers the caller for Windows Communication Foundation (WCF) service event notification.

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

Syntax

'Déclaration
Sub AdviseWCFReferenceEvents ( _
    pSink As IVsWCFReferenceEvents, _
    <OutAttribute> ByRef pCookie As UInteger _
)
void AdviseWCFReferenceEvents(
    IVsWCFReferenceEvents pSink,
    out uint pCookie
)
void AdviseWCFReferenceEvents(
    [InAttribute] IVsWCFReferenceEvents^ pSink, 
    [OutAttribute] unsigned int% pCookie
)
abstract AdviseWCFReferenceEvents : 
        pSink:IVsWCFReferenceEvents * 
        pCookie:uint32 byref -> unit 
function AdviseWCFReferenceEvents(
    pSink : IVsWCFReferenceEvents, 
    pCookie : uint
)

Parameters

  • pCookie
    Type: System.UInt32%
    A token representing the completed registration.

Remarks

To cancel event notification, call the UnadviseWCFReferenceEvents method.

.NET Framework Security

See Also

Reference

IVsWCFReferenceManager Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace