コード例 #1
0
        public TermCollectionInstance GetTermsInWorkingLocale(string termLabel, bool defaultLabelOnly,
                                                              string stringMatchOption, int resultCollectionSize, bool trimUnavailable, bool trimDeprecated)
        {
            var stringMatchOptionEnum = (StringMatchOption)Enum.Parse(typeof(StringMatchOption), stringMatchOption);

            var result = m_taxonomySession.GetTermsInWorkingLocale(termLabel, defaultLabelOnly, stringMatchOptionEnum,
                                                                   resultCollectionSize, trimUnavailable, trimDeprecated);

            return(result == null
              ? null
              : new TermCollectionInstance(this.Engine.Object.InstancePrototype, result));
        }