Clear() public méthode

public Clear ( ) : void
Résultat void
Exemple #1
0
 public static bool SetDatabaseParameters_MySQL()
 {
     try
     {
         MySql.Data.MySqlClient.MySqlConnectionStringBuilder sqlCnnStrBld = new MySql.Data.MySqlClient.MySqlConnectionStringBuilder();
         sqlCnnStrBld.Server   = ConfigurationManager.AppSettings["dbServer_MySQL"].ToString();
         sqlCnnStrBld.Database = ConfigurationManager.AppSettings["dbDatabase_MySQL"].ToString();
         sqlCnnStrBld.UserID   = ConfigurationManager.AppSettings["dbUserID_MySQL"].ToString();
         sqlCnnStrBld.Password = ConfigurationManager.AppSettings["dbPassword_MySQL"].ToString();
         strSQLconn_MySQL      = sqlCnnStrBld.ConnectionString;
         sqlCnnStrBld.Pooling  = false;
         sqlCnnStrBld.Clear();
         strTableName = ConfigurationManager.AppSettings["dbImageTable_MySQL"].ToString();
         return(true);
     }
     catch
     {
         return(false);
     }
 }