public object Extender(string extenderName) { EnvDTE.ObjectExtenders extenderService = (EnvDTE.ObjectExtenders) this.Node.GetService(typeof(EnvDTE.ObjectExtenders)); Debug.Assert(extenderService != null, "Could not get the ObjectExtenders object from the services exposed by this property object"); Utilities.CheckNotNull(extenderService); return(extenderService.GetExtender(this.ExtenderCATID, extenderName, this)); }
public object get_Extender(string extenderName) { EnvDTE.ObjectExtenders extenderService = (EnvDTE.ObjectExtenders)projectConfig.ProjectMgr.GetService(typeof(EnvDTE.ObjectExtenders)); if (extenderService == null) { throw new InvalidOperationException(); } return(extenderService.GetExtender(this.ExtenderCATID, extenderName, projectConfig)); }
public object Extender(string extenderName) { EnvDTE.ObjectExtenders extenderService = (EnvDTE.ObjectExtenders) this.Node.GetService(typeof(EnvDTE.ObjectExtenders)); Debug.Assert(extenderService != null, "Could not get the ObjectExtenders object from the services exposed by this property object"); if (extenderService == null) { throw new InvalidOperationException(); } return(extenderService.GetExtender(this.ExtenderCATID, extenderName, this)); }
/// <include file='doc\Automation.uex' path='docs/doc[@for="OAProjectItem.get_Extender"]/*' /> public virtual object get_Extender(string ExtenderName) { EnvDTE.ObjectExtenders extenderManager = (EnvDTE.ObjectExtenders) this.project.project.Site.GetService(typeof(EnvDTE.ObjectExtenders)); if (extenderManager == null) { throw new Exception(SR.GetString(SR.FailedToGetService)); } return(extenderManager.GetExtender(this.ExtenderCATID, ExtenderName, this)); }
public object Extender(string extenderName) { EnvDTE.ObjectExtenders extenderService = (EnvDTE.ObjectExtenders) this.Node.GetService(typeof(EnvDTE.ObjectExtenders)); return(extenderService.GetExtender(this.ExtenderCATID(), extenderName, this)); }
public object get_Extender(string extenderName) { EnvDTE.ObjectExtenders extenderService = (EnvDTE.ObjectExtenders) this.ProjectMgr.GetService(typeof(EnvDTE.ObjectExtenders)); return(extenderService.GetExtender(this.ExtenderCATID, extenderName, this)); }