Microsoft.Win32.UnixRegistryApi.DeleteValue C# (CSharp) Méthode

DeleteValue() public méthode

public DeleteValue ( RegistryKey rkey, string name, bool throw_if_missing ) : void
rkey RegistryKey
name string
throw_if_missing bool
Résultat void
		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);
		}