コード例 #1
0
        public bool ImportCustomCsv(TermStore oStore, CsvParserBase parser, Encoding encoding, string csvFile, string termSetName, char separator = DEFAULT_SEPARATOR, int lcid = DEFAULT_LCID)
        {
            if (string.IsNullOrEmpty(csvFile))
            {
                throw new ArgumentNullException("csvFile");
            }

            if (string.IsNullOrEmpty(termSetName))
            {
                throw new ArgumentNullException("importName");
            }

            var result = parser.Parse(csvFile, Encoding.UTF8, true, separator);

            AddToCache(result, termSetName);

            return(CreateStructureForTermSet(oStore, termSetName, lcid));
        }
コード例 #2
0
 public bool ImportCustomCsv(TermStore oStore, CsvParserBase parser, string csvFile, string termSetName, char separator = DEFAULT_SEPARATOR, int lcid = DEFAULT_LCID)
 {
     return(ImportCustomCsv(oStore, parser, Encoding.UTF8, csvFile, termSetName, separator, lcid));
 }