用户在app.config中定义会话 [英] User define session in app.config
本文介绍了用户在app.config中定义会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想在App.config中保存一些信息,但是有一些问题.
我定义了一个sectionGroup并定义了一个节,并编写了如下信息:
Hi all,
I want to save some information in App.config, but there is some problem.
I defined a sectionGroup and defined a section, and I wrote the information like below:
//example 1
<mysectiongroup>
<mysession>
//some attribute
</mysession>
<mysession>
//some attribute
</mysession>
</mysectiongroup>
app.config
初始化失败,但是如果我编写如下信息:
the app.config
init fail, but if I wrote the information like below:
//example 2
<mysectiongroup>
<mysession>
//some attribute
</mysession>
</mysectiongroup>
我的应用程序有效.
我的问题是,如何像示例1那样保存我的信息?
my application works.
My question is, how can I save my information like example 1?
推荐答案
如果您的应用程序正常工作,那么您会遇到什么问题?
有关用户定义部分组,请参见以下内容.
在Web.config中自定义节组和节 [ http://msdn.microsoft.com/en-us/library/ms228114.aspx [ ^ ]
问候
Rushi
If your application works then what problem are you getting?
Refer below lings for User define section groups.
Customizing SectionGroups and Sections in Web.config[^]
http://msdn.microsoft.com/en-us/library/ms228114.aspx[^]
Regards
Rushi
您遇到哪种故障?
重复< session>部分,您只能在...
Duplicate <session> section, you can use one section at once only within a...
这篇关于用户在app.config中定义会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文