public Addin GetAddin(string id) { if (currentDomain == AddinDatabase.UnknownDomain) { return(null); } return(database.GetInstalledAddin(currentDomain, id)); }
/// <summary> /// Returns an add-in from the registry. /// </summary> /// <param name="id"> /// Identifier of the add-in. /// </param> /// <returns> /// The add-in, or 'null' if not found. /// </returns> /// <remarks> /// The add-in identifier may optionally include a version number, for example: "TextEditor.Xml,1.2" /// </remarks> public Addin GetAddin(string id) { if (currentDomain == AddinDatabase.UnknownDomain) { return(null); } Addin ad = database.GetInstalledAddin(currentDomain, id); if (ad != null && IsRegisteredForUninstall(ad.Id)) { return(null); } return(ad); }
public Addin GetAddin(string id) { return(database.GetInstalledAddin(currentDomain, id)); }
public Addin GetAddin(string id) { return(database.GetInstalledAddin(id)); }