RemoveValue() public méthode

public RemoveValue ( string name ) : void
name string
Résultat void
        public void DeleteValue(RegistryKey rkey, string name, bool throw_if_missing)
        {
            KeyHandler keyHandler = KeyHandler.Lookup(rkey, true);

            if (keyHandler == null)
            {
                return;
            }
            if (throw_if_missing && !keyHandler.ValueExists(name))
            {
                throw new ArgumentException("the given value does not exist");
            }
            keyHandler.RemoveValue(name);
        }
        public void DeleteValue(RegistryKey rkey, string name, bool throw_if_missing)
        {
            KeyHandler self = KeyHandler.Lookup(rkey, true);

            if (self == null)
            {
                // if key is marked for deletion, report success regardless of
                // throw_if_missing
                return;
            }

            if (throw_if_missing && !self.ValueExists(name))
            {
                throw new ArgumentException("the given value does not exist");
            }

            self.RemoveValue(name);
        }