从 VS Sharepoint 工作流程访问配置文件

发布于 2024-08-08 20:55:27 字数 158 浏览 3 评论 0原文

我想在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

起风了 2024-08-15 20:55:27

Alexandr,您将需要使用 Microsoft.SharePoint.Administration 命名空间中的 SPWebConfigModification 类对 Web 应用程序的 web.config 文件进行任何修改。这不是一件容易的事,但我以前已经做过好几次了。如果您需要更详细的说明,请告诉我。

编辑:我现在将不再偷懒,并为您提供一些链接以帮助您入门。给你!

如何更新 web.config在 SharePoint 服务器场中的每个 WFE 上?

http://blogs.devhorizo​​n。 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文