Elmah.SQLiteErrorLog.SQLiteErrorLog C# (CSharp) Méthode

SQLiteErrorLog() public méthode

Initializes a new instance of the SQLiteErrorLog class using a dictionary of configured settings.
public SQLiteErrorLog ( System.Collections.IDictionary config ) : System
config System.Collections.IDictionary
Résultat System
        public SQLiteErrorLog(IDictionary config)
        {
            if (config == null)
                throw new ArgumentNullException("config");

            string connectionString = ConnectionStringHelper.GetConnectionString(config, true);

            //
            // If there is no connection string to use then throw an
            // exception to abort construction.
            //

            if (connectionString.Length == 0)
                throw new ApplicationException("Connection string is missing for the SQLite error log.");

            _connectionString = connectionString;

            InitializeDatabase();

            ApplicationName = config.Find("applicationName", string.Empty);
        }

Same methods

SQLiteErrorLog::SQLiteErrorLog ( string connectionString ) : System