int IVsCfgProvider2.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie) { pdwCookie = this.eventListeners.Add(pCPE); return NativeMethods.S_OK; }
/// <summary> /// Registers the caller for configuration event notification. /// </summary> /// <param name="sink">Reference to the IVsCfgProviderEvents interface to be called to provide notification of configuration events.</param> /// <param name="cookie">Reference to a token representing the completed registration</param> /// <returns>If the method succeeds, it returns S_OK. If it fails, it returns an error code.</returns> public virtual int AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie) { cookie = this.cfgEventSinks.Add(sink); return(VSConstants.S_OK); }
/// <include file='doc\Project.uex' path='docs/doc[@for="ImageNames.AdviseCfgProviderEvents"]/*' /> public virtual int AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie) { return this.configProvider.AdviseCfgProviderEvents(sink, out cookie); }
/// <summary> /// Registers the caller for configuration event notification. /// </summary> /// <param name="sink">Reference to the IVsCfgProviderEvents interface to be called to provide notification of configuration events.</param> /// <param name="cookie">Reference to a token representing the completed registration</param> /// <returns>If the method succeeds, it returns S_OK. If it fails, it returns an error code.</returns> public virtual int AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie) { cookie = this.cfgEventSinks.Add(sink); return VSConstants.S_OK; }
int IVsCfgProviderEventsHelper.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie) { pdwCookie = this.Add(pCPE); return NativeMethods.S_OK; }
public void AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie) { CCITracing.TraceCall(); cookie = this.cfgEventSinks.Add(sink); }
//========================================================================================== // Methods //========================================================================================== public uint Add(IVsCfgProviderEvents listener) { return base.Add(listener); }
/// <include file='doc\ConfigProvider.uex' path='docs/doc[@for="ConfigProvider.AdviseCfgProviderEvents"]/*' /> public int AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie){ cookie = this.cfgEventSinks.Add(sink); return 0; }
//========================================================================================== // Methods //========================================================================================== public uint Add(IVsCfgProviderEvents listener) { return(base.Add(listener)); }
int IVsCfgProviderEventsHelper.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie) { pdwCookie = this.Add(pCPE); return(NativeMethods.S_OK); }
/// <include file='doc\ConfigProvider.uex' path='docs/doc[@for="ConfigProvider.AdviseCfgProviderEvents"]/*' /> public int AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie) { cookie = this.cfgEventSinks.Add(sink); return(0); }