Пример #1
0
        public Addin[] GetAddins()
        {
            if (currentDomain == AddinDatabase.UnknownDomain)
            {
                return(new Addin [0]);
            }
            ArrayList list = database.GetInstalledAddins(currentDomain, AddinType.Addin);

            return((Addin[])list.ToArray(typeof(Addin)));
        }
Пример #2
0
        /// <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());
        }
Пример #3
0
        public Addin[] GetAddins()
        {
            ArrayList list = database.GetInstalledAddins(currentDomain, AddinType.Addin);

            return((Addin[])list.ToArray(typeof(Addin)));
        }
Пример #4
0
        public Addin[] GetAddins()
        {
            ArrayList list = database.GetInstalledAddins();

            return((Addin[])list.ToArray(typeof(Addin)));
        }