System.util.Properties.Remove C# (CSharp) Méthode

Remove() public méthode

public Remove ( string key ) : string
key string
Résultat string
        public string Remove(string key)
        {
            string retval;
            _col.TryGetValue(key, out retval);
            _col.Remove(key);
            return retval;
        }

Usage Example

 public static Anchor GetAnchor(Properties attributes)
 {
     Anchor anchor = new Anchor(GetPhrase(attributes));
     String value;
     value = attributes[ElementTags.NAME];
     if (value != null) {
         anchor.Name = value;
     }
     value = (String)attributes.Remove(ElementTags.REFERENCE);
     if (value != null) {
         anchor.Reference = value;
     }
     return anchor;
 }
All Usage Examples Of System.util.Properties::Remove