在ASP之外使用Web.config文件 [英] Using Web.config file outside of ASP
问题描述
我正在尝试使用ASP对象(基本上是基于
Web.Config设置形成和填充),我想在不同的非asp程序中使用它们
,重新编程最少。所以,我的问题是如何模拟ASP
读取Web.Config文件的作用?我已经尝试在
System.Configuration库中乱搞,并且无法从
中找到任何东西,快速查看对象及其方法(为了填充应用程序的ConfigurationSettings对象的
的目标)。任何建议
表示赞赏。
I''m trying to use ASP objects (basically formed and populated based on
Web.Config settings) and I want to use them in a different non-asp program
with minimal reprogramming. So, my question is how do I mock up what ASP
does to read the Web.Config file? I''ve tried messing around in the
System.Configuration library and haven''t been able to find anything from
taking a quick look at the objects and their methods (for the goal of
populating the application''s ConfigurationSettings object). Any suggestions
are appreciated.
推荐答案
这只是一个XML文件。
无论你想写什么,都有能力阅读它们吗?它是
只是一个具有从XML中提取的属性的类
-
Curt Christianson
网站: http://www.darkfalz.com
博客: http://blog.darkfalz.com
Timm写道:
It''s just an XML file.
Does whatever you are trying to write in have the ability to read them? It''s
just a class with properties that pull from the XML
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Timm" wrote:
我正在尝试使用ASP对象(基本上是基于Web.Config设置形成和填充),我想在不同的非asp程序
最小的重新编程。所以,我的问题是如何模拟ASP读取Web.Config文件的内容?我已经尝试过在
System.Configuration库中乱搞并且无法从
中快速查看对象及其方法(为了实现目标) >填充应用程序的ConfigurationSettings对象。任何建议都值得赞赏。
I''m trying to use ASP objects (basically formed and populated based on
Web.Config settings) and I want to use them in a different non-asp program
with minimal reprogramming. So, my question is how do I mock up what ASP
does to read the Web.Config file? I''ve tried messing around in the
System.Configuration library and haven''t been able to find anything from
taking a quick look at the objects and their methods (for the goal of
populating the application''s ConfigurationSettings object). Any suggestions
are appreciated.
我正在尝试写的类是一个只有2种方法的只读类for
从中获取设置。我没有在
System.Configuration中找到任何明确表示此方法将从XML文件中加载
应用程序的ConfigurationSettings的方法。
" Curt_C [MVP]" < software_at_darkfalz.com>在消息中写道
news:93 ********************************** @ microsof t.com ...
The class I''m trying to write to is a read only class with 2 methods for
getting settings out of it. I haven''t found any methods within the
System.Configuration that says explicitly "this method will load an
application''s ConfigurationSettings from an XML file".
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:93**********************************@microsof t.com...
它只是一个XML文件。
你写的任何内容是否有能力阅读它们?
它是
只是一个具有拉出XML的属性的类
-
Curt Christianson
网站: http://www.darkfalz.com
博客: http://blog.darkfalz.com
Timm写道:
It''s just an XML file.
Does whatever you are trying to write in have the ability to read them?
It''s
just a class with properties that pull from the XML
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Timm" wrote:
我正在尝试使用ASP对象(基本上是基于Web.Config设置形成和填充),我想在不同的非asp
程序
只需最少的重新编程。所以,我的问题是如何模拟ASP读取Web.Config文件的内容?我已经尝试过在
System.Configuration库中乱搞并且无法从
中快速查看对象及其方法(为了实现目标) >填充应用程序的ConfigurationSettings对象。任何
建议
非常感谢。
I''m trying to use ASP objects (basically formed and populated based on
Web.Config settings) and I want to use them in a different non-asp
program
with minimal reprogramming. So, my question is how do I mock up what ASP
does to read the Web.Config file? I''ve tried messing around in the
System.Configuration library and haven''t been able to find anything from
taking a quick look at the objects and their methods (for the goal of
populating the application''s ConfigurationSettings object). Any
suggestions
are appreciated.
写吧....
它只是一个将节点解析为属性的XML阅读器
-
Curt Christianson
site : http://www.darkfalz.com
博客: http://blog.darkfalz.com
Timm写道:
Write it....
It''s just an XML reader parsing the nodes into properties
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Timm" wrote:
我正在尝试写的类是一个只读类,有两种方法可以从中获取设置。我没有在
System.Configuration中找到任何明确说明此方法将从XML文件中加载
应用程序的ConfigurationSettings的方法。
Curt_C [MVP] < software_at_darkfalz.com>在消息中写道
新闻:93 ********************************** @ microsof t.com。 ..
The class I''m trying to write to is a read only class with 2 methods for
getting settings out of it. I haven''t found any methods within the
System.Configuration that says explicitly "this method will load an
application''s ConfigurationSettings from an XML file".
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:93**********************************@microsof t.com...
它只是一个XML文件。
你写的任何内容都有能力阅读它们吗?
它是
只是一个具有从XML中获取的属性的类
-
Curt Christianson
网站: http://www.darkfalz.com
博客: http://blog.darkfalz.com
Timm写道:
It''s just an XML file.
Does whatever you are trying to write in have the ability to read them?
It''s
just a class with properties that pull from the XML
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Timm" wrote:
我正在尝试使用ASP对象(基本上是基于Web.Config设置形成和填充),我想在不同的非asp
程序
只需最少的重新编程。所以,我的问题是如何模拟ASP读取Web.Config文件的内容?我已经尝试过在
System.Configuration库中乱搞并且无法从
中快速查看对象及其方法(为了实现目标) >填充应用程序的ConfigurationSettings对象。任何
建议
表示赞赏。
I''m trying to use ASP objects (basically formed and populated based on
Web.Config settings) and I want to use them in a different non-asp
program
with minimal reprogramming. So, my question is how do I mock up what ASP
does to read the Web.Config file? I''ve tried messing around in the
System.Configuration library and haven''t been able to find anything from
taking a quick look at the objects and their methods (for the goal of
populating the application''s ConfigurationSettings object). Any
suggestions
are appreciated.
这篇关于在ASP之外使用Web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!