MySql.Data.MySqlClient.MySqlConnectionStringBuilder.Remove C# (CSharp) Méthode

Remove() public méthode

public Remove ( string keyword ) : bool
keyword string
Résultat bool
        public override bool Remove(string keyword)
        {
            ValidateKeyword(keyword);
            string primaryKey = validKeywords[keyword];

            values.Remove(primaryKey);
            base.Remove(primaryKey);

            values[primaryKey] = defaultValues[primaryKey].DefaultValue;
            return true;
        }

Usage Example

 public void Clean(MySqlConnectionStringBuilder builder)
 {
     builder.Remove(this.Keyword);
     if (this.Synonyms == null)
     {
         return;
     }
     string[] synonyms = this.Synonyms;
     for (int i = 0; i < synonyms.Length; i++)
     {
         string keyword = synonyms[i];
         builder.Remove(keyword);
     }
 }
All Usage Examples Of MySql.Data.MySqlClient.MySqlConnectionStringBuilder::Remove