Exemple #1
0
 // Token: 0x0600001F RID: 31 RVA: 0x000029EC File Offset: 0x00000BEC
 public static bool INIEmptySection(string iniFile, string section)
 {
     if (string.IsNullOrEmpty(section))
     {
         throw new ArgumentException("必须指定节点名称", "section");
     }
     return(Win32API.WritePrivateProfileSection(section, string.Empty, iniFile));
 }
Exemple #2
0
 // Token: 0x0600001B RID: 27 RVA: 0x0000288C File Offset: 0x00000A8C
 public static bool INIWriteItems(string iniFile, string section, string items)
 {
     if (string.IsNullOrEmpty(section))
     {
         throw new ArgumentException("必须指定节点名称", "section");
     }
     if (string.IsNullOrEmpty(items))
     {
         throw new ArgumentException("必须指定键值对", "items");
     }
     return(Win32API.WritePrivateProfileSection(section, items, iniFile));
 }