예제 #1
0
        /// <summary>
        /// 展示配置(展示关键字集合)
        /// </summary>
        /// <param name="keyWord"></param>
        /// <param name="paramName"></param>
        /// <returns></returns>
        public List <string> ListConfig()
        {
            try
            {
                List <string> cmdParamSet = new List <string>();

                string listParam = DbtuneTemplate.DBTUNE_LIST_PARAM_3;
                listParam = SetBaseParam(listParam);

                cmdParamSet.Add(listParam);

                string[] cmdInvorkOutput = RegexCheck.Split(Environment.NewLine, CmdInvork(cmdParamSet).Trim().Replace("\t", string.Empty));

                List <string> keywordSet = new List <string>();

                for (int i = 0; i < cmdInvorkOutput.Length; i++)
                {
                    keywordSet.Add(cmdInvorkOutput[i]);
                }

                return(keywordSet);
            }
            catch (Exception ex)
            {
                LogHelper.Error.Append(ex);

                return(null);
            }
        }