Share via


ConfigProvider.. Method

Registers the caller for configuration event notification.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors.VS (in SQLEditors.VS.dll)

Syntax

'Declaration
Private Function AdviseCfgProviderEvents ( _
    vsCfgProviderEvents As IVsCfgProviderEvents, _
    <OutAttribute> ByRef cookie As UInteger _
) As Integer Implements IVsCfgProvider2.AdviseCfgProviderEvents
'Usage
Dim instance As ConfigProvider
Dim vsCfgProviderEvents As IVsCfgProviderEvents
Dim cookie As UInteger
Dim returnValue As Integer

returnValue = CType(instance, IVsCfgProvider2).AdviseCfgProviderEvents(vsCfgProviderEvents, _
    cookie)
int IVsCfgProvider2.AdviseCfgProviderEvents(
    IVsCfgProviderEvents vsCfgProviderEvents,
    out uint cookie
)
private:
virtual int AdviseCfgProviderEvents(
    IVsCfgProviderEvents^ vsCfgProviderEvents, 
    [OutAttribute] unsigned int% cookie
) sealed = IVsCfgProvider2::AdviseCfgProviderEvents
private abstract AdviseCfgProviderEvents : 
        vsCfgProviderEvents:IVsCfgProviderEvents * 
        cookie:uint32 byref -> int 
private override AdviseCfgProviderEvents : 
        vsCfgProviderEvents:IVsCfgProviderEvents * 
        cookie:uint32 byref -> int 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

  • vsCfgProviderEvents
    Type: IVsCfgProviderEvents
    A IVsCfgProviderEvents object.
  • cookie
    Type: System.UInt32%
    An integer value that contains a cookie.

Return Value

Type: System.Int32
A integer value.

Implements

IVsCfgProvider2AdviseCfgProviderEvents(IVsCfgProviderEvents, UInt32%)