public Addin[] GetAddins() { if (currentDomain == AddinDatabase.UnknownDomain) { return(new Addin [0]); } ArrayList list = database.GetInstalledAddins(currentDomain, AddinType.Addin); return((Addin[])list.ToArray(typeof(Addin))); }
/// <summary> /// Gets all add-ins or add-in roots registered in the registry. /// </summary> /// <returns> /// The addins. /// </returns> /// <param name='flags'> /// Flags. /// </param> public Addin[] GetModules(AddinSearchFlags flags) { if (currentDomain == AddinDatabase.UnknownDomain) { return(new Addin [0]); } AddinSearchFlagsInternal f = (AddinSearchFlagsInternal)(int)flags; return(database.GetInstalledAddins(currentDomain, f | AddinSearchFlagsInternal.ExcludePendingUninstall).ToArray()); }
public Addin[] GetAddins() { ArrayList list = database.GetInstalledAddins(currentDomain, AddinType.Addin); return((Addin[])list.ToArray(typeof(Addin))); }
public Addin[] GetAddins() { ArrayList list = database.GetInstalledAddins(); return((Addin[])list.ToArray(typeof(Addin))); }