Registry Delete Value


Node Information
Deletes value from the selected Hive, select the Hive in the properties window and choose the ValueName, then call 'Delete'.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Delete IN RUN MULTIPLE FALSE FALSE
ValueName IN String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Registry
{
    [IsNode("Delete Value")]
    public class DeleteValue : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Delete");
        Port valueName = new Port(PortType.IN, typeof(string), AcceptsLinks.MULTIPLE, "ValueName");
        public RegistryHives Hive { set { Settings[0] = value.ToString(); } get { return (RegistryHives)Enum.Parse(typeof(RegistryHives), Settings[0]); } }
        public string ValueName
        {
            set { valueName.Value = value.ToString(); }
            get { return GetRuntimeValue(valueName); }
        }
        public DeleteValue()
        {
            Name = "Registry Delete Value";
            NodeType = KGraph.NodeType.Method;
            Hive = RegistryHives.CurrentUser;
            AddPort(run);
            AddPort(valueName);
            Information = "Deletes value from the selected Hive, select the Hive in the properties window " +
                "and choose the ValueName, then call 'Delete'.";
        }
        public override string Code()
        {
            return "Microsoft.Win32.Registry." + Hive.ToString() + ".DeleteValue(" + GetValue(valueName) + ");";
        }
    }
}