IsAddinLoaded() public method

Checks if an add-in has been loaded.
public IsAddinLoaded ( string id ) : bool
id string /// Full identifier of the add-in. ///
return bool
Example #1
0
 bool CheckAddinDependencies(ModuleDescription module, bool forceLoadAssemblies)
 {
     foreach (Dependency dep in module.Dependencies)
     {
         AddinDependency pdep = dep as AddinDependency;
         if (pdep == null)
         {
             continue;
         }
         if (!addinEngine.IsAddinLoaded(pdep.FullAddinId))
         {
             return(false);
         }
         if (forceLoadAssemblies)
         {
             addinEngine.GetAddin(pdep.FullAddinId).EnsureAssembliesLoaded();
         }
     }
     return(true);
 }
Example #2
0
 /// <summary>
 /// Checks if an add-in has been loaded.
 /// </summary>
 /// <param name="id">
 /// Full identifier of the add-in.
 /// </param>
 /// <returns>
 /// True if the add-in is loaded.
 /// </returns>
 public static bool IsAddinLoaded(string id)
 {
     return(AddinEngine.IsAddinLoaded(id));
 }