如何使用c#读取dtsConfig文件内容
问题描述:
我想使用C#以编程方式从dtsConfig文件中读取连接字符串。我正在寻找使用Configuration类读取app.config或web.config文件的东西。
I want to read a connection string from a dtsConfig file programmatically using C#. I am looking for something like reading a app.config or web.config file using Configuration class.
所以只是想知道这是否可行!感谢你的帮助。
So just wondering if this is possible! Thanks for your help in advance.
答
是的,你可以。 DTSConfig是一个xml文件。为什么要从DTSConfig文件中读取连接字符串?
Yes you can. DTSConfig is a xml file. Why do you want to read a connection string from DTSConfig file?