Example #1
0
        /// <summary>
        /// Delete the config file.
        /// </summary>
        /// <param name="config">ConfigManager object.</param>
        public void DelConfig(ConfigManagerBase config)
        {
            // Parameter check.
            if (config == null)
            {
                ODLVSEMETW.EventWriteConfigManagerDiagError(MethodBase.GetCurrentMethod().Name,
                                                            "The parameter 'config' is null or invalid.");
                throw new ArgumentException(
                          "The parameter 'config' is null or invalid.");
            }

            // Delete the config file.
            config.Del();
        }
        /// <summary>
        /// Delete the config file.
        /// </summary>
        /// <param name="config">ConfigManager object.</param>
        public void DelConfig(ConfigManagerBase config)
        {
            // Parameter check.
            if (config == null) {
                ODLVSEMETW.EventWriteConfigManagerDiagError(MethodBase.GetCurrentMethod().Name,
                    "The parameter 'config' is null or invalid.");
                throw new ArgumentException(
                    "The parameter 'config' is null or invalid.");
            }

            // Delete the config file.
            config.Del();
        }