从 VS Sharepoint 工作流程访问配置文件
我想在 sharepoint Web 应用程序的 web.config 文件或工作流程本身的 app.config 中存储一些设置。但我不知道如何访问这两个文件,也不知道如何处理其中的数据。请提供一些建议,如何执行此操作或在哪里阅读有关执行此操作的信息。
任何信息都有帮助。 亚历山大.
I want to store some setting in web.config file of the sharepoint web application or in app.config of the workflow itself. But i don't know how to access neither of these files and i don't know how to handle the data inside them. Please, give some advise, how to do this or where to read about doing this.
Any information is helpful.
Alexandr.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Alexandr,您将需要使用 Microsoft.SharePoint.Administration 命名空间中的 SPWebConfigModification 类对 Web 应用程序的 web.config 文件进行任何修改。这不是一件容易的事,但我以前已经做过好几次了。如果您需要更详细的说明,请告诉我。
编辑:我现在将不再偷懒,并为您提供一些链接以帮助您入门。给你!
如何更新 web.config在 SharePoint 服务器场中的每个 WFE 上?
http://blogs.devhorizon。 com/reza/?p=459
http: //www.crsw.com/mark/Lists/Posts/Post.aspx?ID=32
http://antonzhi.spaces.live.com/Blog/cns!76D1A388C70D6997!108.entry
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ 864dd894-c4cb-4815-a3de-8717d38da5ae
Alexandr, you will need to use the SPWebConfigModification class from the Microsoft.SharePoint.Administration namespace to make any modifications to your web application's web.config file. It's no easy task but I've done it several times before. If you'd like more detailed instructions please let me know.
EDIT: I'll stop being lazy now and give you some links to get you started. Here ya go!
How to update web.config on each WFE in a SharePoint server farm?
http://blogs.devhorizon.com/reza/?p=459
http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=32
http://antonzhi.spaces.live.com/Blog/cns!76D1A388C70D6997!108.entry
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/864dd894-c4cb-4815-a3de-8717d38da5ae