BExIS.Ddm.Model.SearchComponent.GetSearchComponent C# (CSharp) Метод

GetSearchComponent() публичный Метод

public GetSearchComponent ( string name, SearchComponentBaseType typeOf ) : SearchComponentBase
name string
typeOf SearchComponentBaseType
Результат SearchComponentBase
        public SearchComponentBase GetSearchComponent(string name, SearchComponentBaseType typeOf)
        {
            switch (typeOf)
            {
                case SearchComponentBaseType.Facet:
                    {
                        if (this.ContainsFacet(name)) return this.GetFacet(name);
                        break;
                    }
                case SearchComponentBaseType.Category:
                    {
                        if (this.ContainsCategory(name)) return this.GetCategory(name);
                        break;
                    }
                case SearchComponentBaseType.Property:
                    {
                        if (this.ContainsProperty(name)) return this.GetProperty(name);
                        break;
                    }
            }
            return null;
        }