Beispiel #1
0
 /// <summary>
 /// 删除INI文件中的某个键值
 /// </summary>
 /// <param name="section">段落</param>
 /// <param name="key">要删除的键</param>
 public void DeleteKey(string section, string key)
 {
     WinAPI.WritePrivateProfileString(section, key, null, this.Path);
 }
Beispiel #2
0
 /// <summary>
 /// 删除INI文件中的某个键值
 /// </summary>
 /// <param name="section">段落</param>
 public void DeleteSection(string section)
 {
     WinAPI.WritePrivateProfileString(section, null, null, this.Path);
 }
Beispiel #3
0
 /// <summary>
 /// 写INI文件
 /// </summary>
 /// <param name="key">键</param>
 /// <param name="value">值</param>
 public void WriteString(string section, string key, string value)
 {
     WinAPI.WritePrivateProfileString(section, key, value, this.Path);
 }