/// <include file='doc\FlavoredProject.uex' path='docs/doc[@for="FlavoredProject.AdviseHierarchyEvents"]/*' /> protected virtual uint AdviseHierarchyEvents(Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents eventSink) { uint cookie = 0; NativeMethods.ThrowOnFailure(innerVsHierarchy.AdviseHierarchyEvents(eventSink, out cookie)); return(cookie); }
// // Most methods call protected virtual methods which delegate to the inner project. // Derived classes should override those protected method if they want to change the // behavior. // int IVsHierarchy.AdviseHierarchyEvents(Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents eventSink, out uint cookie) { cookie = this.AdviseHierarchyEvents(eventSink); return(NativeMethods.S_OK); }