Beispiel #1
0
        /// <exclude />
        public static bool ContainsLocalizedData(ElementProviderHandle elementProviderHandle)
        {
            if (elementProviderHandle == null) throw new ArgumentNullException("elementProviderHandle");

            if (ElementProviderPluginFacade.IsLocaleAwareElementProvider(elementProviderHandle.ProviderName) == false) return false;

            return ElementProviderPluginFacade.ContainsLocalizedData(elementProviderHandle.ProviderName);
        }
Beispiel #2
0
        /// <exclude />
        public static IEnumerable <Element> GetForeignRoots(ElementProviderHandle elementProviderHandle, SearchToken searchToken)
        {
            if (elementProviderHandle == null)
            {
                throw new ArgumentNullException("elementProviderHandle");
            }

            return(GetRoots(elementProviderHandle.ProviderName, searchToken, true, true));
        }
Beispiel #3
0
        internal static bool IsLocaleAwareElementProvider(ElementProviderHandle elementProviderHandle)
        {
            if (elementProviderHandle == null)
            {
                throw new ArgumentNullException("elementProviderHandle");
            }

            return(ElementProviderPluginFacade.IsLocaleAwareElementProvider(elementProviderHandle.ProviderName));
        }
Beispiel #4
0
        /// <exclude />
        public static IEnumerable <Element> GetRootsWithNoSecurity(ElementProviderHandle elementProviderHandle, SearchToken searchToken)
        {
            if (elementProviderHandle == null)
            {
                throw new ArgumentNullException("elementProviderHandle");
            }

            return(GetRoots(elementProviderHandle.ProviderName, searchToken, false, false));
        }
Beispiel #5
0
        /// <exclude />
        public static object GetData(ElementProviderHandle elementProviderHandle, string dataName)
        {
            if (elementProviderHandle == null)
            {
                throw new ArgumentNullException("elementProviderHandle");
            }
            if (string.IsNullOrEmpty(dataName))
            {
                throw new ArgumentNullException("dataName");
            }

            return(ElementProviderPluginFacade.GetData(elementProviderHandle.ProviderName, dataName));
        }
Beispiel #6
0
        /// <exclude />
        public static bool ContainsLocalizedData(ElementProviderHandle elementProviderHandle)
        {
            if (elementProviderHandle == null)
            {
                throw new ArgumentNullException("elementProviderHandle");
            }

            if (ElementProviderPluginFacade.IsLocaleAwareElementProvider(elementProviderHandle.ProviderName) == false)
            {
                return(false);
            }

            return(ElementProviderPluginFacade.ContainsLocalizedData(elementProviderHandle.ProviderName));
        }
Beispiel #7
0
        /// <exclude />
        public static IEnumerable<Element> GetForeignRoots(ElementProviderHandle elementProviderHandle, SearchToken searchToken)
        {
            if (elementProviderHandle == null) throw new ArgumentNullException("elementProviderHandle");

            return GetRoots(elementProviderHandle.ProviderName, searchToken, true, true);
        }
Beispiel #8
0
        internal static bool IsLocaleAwareElementProvider(ElementProviderHandle elementProviderHandle)
        {
            if (elementProviderHandle == null) throw new ArgumentNullException("elementProviderHandle");

            return ElementProviderPluginFacade.IsLocaleAwareElementProvider(elementProviderHandle.ProviderName);
        }
Beispiel #9
0
        /// <exclude />
        public static IEnumerable<Element> GetRootsWithNoSecurity(ElementProviderHandle elementProviderHandle, SearchToken searchToken)
        {
            if (elementProviderHandle == null) throw new ArgumentNullException("elementProviderHandle");

            return GetRoots(elementProviderHandle.ProviderName, searchToken, false, false);
        }
Beispiel #10
0
        /// <exclude />
        public static object GetData(ElementProviderHandle elementProviderHandle, string dataName)
        {
            if (elementProviderHandle == null) throw new ArgumentNullException("elementProviderHandle");
            if (string.IsNullOrEmpty(dataName)) throw new ArgumentNullException("dataName");

            return ElementProviderPluginFacade.GetData(elementProviderHandle.ProviderName, dataName);
        }