SetValue() 공개 메소드

public SetValue ( string name, object value ) : void
name string
value object
리턴 void
        public void SetValue(RegistryKey rkey, string name, object value, RegistryValueKind valueKind)
        {
            KeyHandler keyHandler = KeyHandler.Lookup(rkey, true);

            if (keyHandler == null)
            {
                throw RegistryKey.CreateMarkedForDeletionException();
            }
            keyHandler.SetValue(name, value, valueKind);
        }
예제 #2
0
        public void SetValue(RegistryKey rkey, string name, object value)
        {
            KeyHandler self = KeyHandler.Lookup(rkey, true);

            if (self == null)
            {
                throw RegistryKey.CreateMarkedForDeletionException();
            }
            self.SetValue(name, value);
        }