EWUScanner.Database.AddToTableUnScannable C# (CSharp) Method

AddToTableUnScannable() public static method

public static AddToTableUnScannable ( string fileName, string filePath, string userName, string exception ) : void
fileName string
filePath string
userName string
exception string
return void
        public static void AddToTableUnScannable(string fileName, string filePath, string userName, string exception)
        {
            String cleanedFileName = CleanFileString(fileName);
            String cleanedFilePath = CleanFileString(filePath);
            String cleanedException = CleanFileString(exception);
            try
            {
                string txtQuery = "insert into UnScannable (filename, filePath, owner, reason) " + "values ('" + cleanedFileName + "', '" + cleanedFilePath + "', '" + userName + "', '" + cleanedException + "');";
                ExecuteNonQuery(txtQuery);
            }
            catch (Exception) { /*MessageBox.Show("AddToTableunScannable Fail", e.ToString());*/ }
        }