Microsoft.Win32.KeyHandler.RemoveValue C# (CSharp) Méthode

RemoveValue() public méthode

public RemoveValue ( string name ) : void
name string
Résultat void
		public void RemoveValue (string name)
		{
			AssertNotMarkedForDeletion ();

			values.Remove (name);
			SetDirty ();
		}

Usage Example

        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);
        }
All Usage Examples Of Microsoft.Win32.KeyHandler::RemoveValue