예제 #1
0
 public RegKey(RegKey BaseDir, string Name)
 {
     if (BaseDir == null)
     {
         throw new ArgumentNullException();
     }
     Root      = BaseDir;
     this.Name = Name;
 }
예제 #2
0
        /// <summary>
        /// Same as <see cref=&quotGetSubKey"/>, but this method forces the creation
        /// where <see cref=&quotGetSubKey"/> just returns the object which will create
        /// itself when needed (a value is set)
        /// </summary>
        /// <param name=&quotName"></param>
        /// <returns></returns>
        public RegKey CreateSubKey(string Name)
        {
            RegKey key = GetSubKey(Name);

            if (!key.Exists())
            {
                key.Create();
            }
            return(key);
        }
예제 #3
0
 internal FileStarterShellMenu(FileStarterShell owner, string Name)
     : base(owner, Name)
 {
     this.Owner = owner;
     commandKey = new RegKey(this, "command");
 }
예제 #4
0
 public RegKey(RegKey BaseDir, string Name)
 {
     Root      = BaseDir ?? throw new ArgumentNullException();
     this.Name = Name;
 }