コード例 #1
0
 int IVsCfgProvider2.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie)
 {
     pdwCookie = this.eventListeners.Add(pCPE);
     return NativeMethods.S_OK;
 }
コード例 #2
0
ファイル: ConfigProvider.cs プロジェクト: rsumner33/PTVS
 /// <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);
 }
コード例 #3
0
ファイル: Project.cs プロジェクト: hesam/SketchSharp
 /// <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);
 }
コード例 #4
0
		/// <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;
		}
コード例 #5
0
 int IVsCfgProviderEventsHelper.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie)
 {
     pdwCookie = this.Add(pCPE);
     return NativeMethods.S_OK;
 }
コード例 #6
0
		int IVsCfgProvider2.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie)
		{
			pdwCookie = this.eventListeners.Add(pCPE);
			return NativeMethods.S_OK;
		}
コード例 #7
0
 public void AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie)
 {
     CCITracing.TraceCall();
     cookie = this.cfgEventSinks.Add(sink);
 }
コード例 #8
0
 //==========================================================================================
 // Methods
 //==========================================================================================
 public uint Add(IVsCfgProviderEvents listener)
 {
     return base.Add(listener);
 }
コード例 #9
0
ファイル: configprovider.cs プロジェクト: hesam/SketchSharp
 /// <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;
 }
コード例 #10
0
ファイル: configprovider.cs プロジェクト: hesam/SketchSharp
 public void AdviseCfgProviderEvents(IVsCfgProviderEvents sink, out uint cookie) {
   CCITracing.TraceCall();
   cookie = this.cfgEventSinks.Add(sink);      
 }
コード例 #11
0
        //==========================================================================================
        // Methods
        //==========================================================================================

        public uint Add(IVsCfgProviderEvents listener)
        {
            return(base.Add(listener));
        }
コード例 #12
0
 int IVsCfgProviderEventsHelper.AdviseCfgProviderEvents(IVsCfgProviderEvents pCPE, out uint pdwCookie)
 {
     pdwCookie = this.Add(pCPE);
     return(NativeMethods.S_OK);
 }
コード例 #13
0
 /// <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);
 }