读ini配置文件value值长度有限制?

fky1989 fky1989 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
[GetScheduling]
InParamStr=1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
最长这么长?再多一个字符就报错了,如果有限制,那么还有什么好办法记录长配置信息?我是想记录存储过程的输出参数
OutParamStr=PlanID,s|WorkDate,s|RegTypeCode,s|RegTypeName,s|DeptCode,s|DeptName,s|DoctorWorkNum,s|DoctorName,s|Morning,s|MCan,int32|MRegister,int32|Afternoon,s|ACan,int32|ARegister,int32|Night,s|NCan,int32|NRegister,int32|VisitPosition,s|Price,decimal

private string ContentValue(string Section, string Key)
{
StringBuilder temp = new StringBuilder();
GetPrivateProfileString(Section, Key, "", temp, 2048, iniFilePath);
return temp.ToString();
}
...全文
评论 10
收藏 已收藏
分享
返回顶部
fky1989
C# 111,128 成员 642,536 内容