Globals.RegistryAccess.getValues C# (CSharp) Method

getValues() public method

public getValues ( ) : object[]
return object[]
        public object[] getValues()
        {
            if (!_isOpen) return null;
            string[] temp = the_Reg.GetValueNames();
            object[] tempValue = new object[temp.Length];
            for (int i = 0; i < temp.Length; i++ )
                tempValue[i] = the_Reg.GetValue(temp[i]);
            return tempValue;
        }

Usage Example

コード例 #1
0
 public static void populate()
 {
     if (pluginInfo.Names.Count < 1)
     {
         RegistryAccess ra = new RegistryAccess(Microsoft.Win32.Registry.CurrentUser,
                                  RegistryAccess.RegPaths.Halo2 + "PluginSets\\");
         if (ra.isOpen)
         {
             pluginInfo.Names = new List<string>(ra.getNames());
             pluginInfo.Paths = new List<string>(Array.ConvertAll(ra.getValues(),new Converter<object,string>(Convert)));
             int i = pluginInfo.Names.IndexOf("");
             if (i != -1)
             {
                 pluginInfo.Names.RemoveAt(i);
                 pluginInfo.Paths.RemoveAt(i);
             }
         }
         else
         {
             pluginInfo.Names.Add("Default");
             pluginInfo.Paths.Add(Prefs.pathPluginsFolder);
         }
         ra.CloseReg();
     }
 }
All Usage Examples Of Globals.RegistryAccess::getValues