Sdl.Web.Tridion/Providers/Query/BrokerQueryProvider.cs
/// <summary>
/// Sets the keyword filters using a list of keyword objects
/// </summary>
/// <param name="keywords"></param>
Sets the keyword filters using a list of keyword objects
Sets the keyword filters using a list of keyword objects
public void SetKeywordFilters(List<Keyword> keywords)
        {
            if (KeywordFilters == null)
            {
                KeywordFilters = new Dictionary<string, List<string>>();
            }
            foreach (Keyword kw in keywords)
            {
                string taxonomy = kw.TaxonomyUri;
                if (!KeywordFilters.ContainsKey(taxonomy))
                {
                    KeywordFilters.Add(taxonomy, new List<string>());
                }
                KeywordFilters[taxonomy].Add(kw.KeywordUri);
            }
        }
public void SetKeywordFilters ( List < Keyword > keywords ) { if ( KeywordFilters == null ) { KeywordFilters = new Dictionary < string , List < string > > ( ) ; } foreach ( Keyword kw in keywords ) { string taxonomy = kw . TaxonomyUri ; if ( ! KeywordFilters . ContainsKey ( taxonomy ) ) { KeywordFilters . Add ( taxonomy , new List < string > ( ) ) ; } KeywordFilters [ taxonomy ] . Add ( kw . KeywordUri ) ; } }
Sets the keyword filters using a list of keyword objects
Sets the keyword filters using a list of keyword objects
keywords
List<Keyword>
None