Exemple #1
0
 // Token: 0x0600001E RID: 30 RVA: 0x000029B0 File Offset: 0x00000BB0
 public static bool INIDeleteSection(string iniFile, string section)
 {
     if (string.IsNullOrEmpty(section))
     {
         throw new ArgumentException("必须指定节点名称", "section");
     }
     return(Win32API.WritePrivateProfileString(section, null, null, iniFile));
 }
Exemple #2
0
 // Token: 0x0600001C RID: 28 RVA: 0x000028E4 File Offset: 0x00000AE4
 public static bool INIWriteValue(string iniFile, string section, string key, string value)
 {
     if (string.IsNullOrEmpty(section))
     {
         throw new ArgumentException("必须指定节点名称", "section");
     }
     if (string.IsNullOrEmpty(key))
     {
         throw new ArgumentException("必须指定键名称", "key");
     }
     if (value == null)
     {
         throw new ArgumentException("值不能为null", "value");
     }
     return(Win32API.WritePrivateProfileString(section, key, value, iniFile));
 }