public IsAddinLoaded ( string id ) : bool | ||
id | string | /// Full identifier of the add-in. /// |
Результат | bool |
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); }
/// <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)); }