我们如何设置DataDirectory? [英] how we can set DataDirectory?

查看:92
本文介绍了我们如何设置DataDirectory?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想设置DataDirectory属性,调用AppDomain.SetData方法,但我不知道如何使用c#代码。



谢谢

Hi

I want set DataDirectory property, with call the AppDomain.SetData method but I don't how use in c# code.

thanks

推荐答案

AppDomain.SetData示例 [ ^ ]



以上链接是使用AppDomain.SetData的示例,但是如果DataDirectory是一个系统属性,然后你将无法设置它(根据该链接的信息)。
AppDomain.SetData Example[^]

The above link is an example of using AppDomain.SetData, however if DataDirectory is a system property then you will not be able to set it (as per the information on that link).


请参阅以下链接

http://social.msdn.microsoft.com/Forums/en-US/0712dd47-8437-4c84-b27e-2b12fddf2153/what-is-the-datadirectory-in-data-source- datadirectorynorthwindsdf?forum = sqlce [ ^ ]

http://stackoverflow.com/questions/12266924/how-do-i-read -the-path-of-datadirectory-from-config-settings [ ^ ]
See the following links
http://social.msdn.microsoft.com/Forums/en-US/0712dd47-8437-4c84-b27e-2b12fddf2153/what-is-the-datadirectory-in-data-source-datadirectorynorthwindsdf?forum=sqlce[^]
http://stackoverflow.com/questions/12266924/how-do-i-read-the-current-path-of-datadirectory-from-config-settings[^]


这篇关于我们如何设置DataDirectory?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆