在 sharepoint 2007 中创建事件接收器

发布于 2024-11-07 23:19:43 字数 68 浏览 2 评论 0原文

哪个项目用于为 sharepoint 2007 列表创建事件接收器 - 顺序工作流程或状态工作流程?我用的是VS 2010

which project use to create event receiver for sharepoint 2007 list - sequential workflow or state workflow? i'm using VS 2010

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

猫瑾少女 2024-11-14 23:19:43

两者都不。

工作流是通过 SharePoint 计时器服务运行的事件,可以由场中的任何服务器执行。

事件接收器本质上是一个事件处理程序,它将在处理触发事件接收器的请求的同一服务器上同步或异步执行(取决于您要实现的事件)。

Visual Studio 2010 对 SharePoint 2007 没有太多 OOTB 支持。您可以考虑安装 WSP Builder 扩展(请注意,正确的下载不是推荐的下载 - 您需要 2010 BETA 1.4)。他们提供了新的项目类型,其中包括事件接收器。请注意,尽管这些项目类型存在一些怪癖,但总的来说,它们对于正确设置项目非常有帮助。

请务必阅读有关项目的文件夹/文件布局的文档。如果操作正确,您可以使用 WSPBuilder 为您生成 WSP。

快速搜索发现了这篇博客文章 这可能会帮助您开始了解项目结构。我确信还有很多很多的参考资料可供参考。快乐编码!

Neither.

Workflows are events which are run via the SharePoint Timer service and can be executed by any server in the farm.

An event receiver is essentially an event handler that will be executed either synchronously or asynchronously (depending on which event you're implementing) on the same server which handled the request that triggered the event receiver.

Visual Studio 2010 does not have much OOTB support for SharePoint 2007. You might consider installing the WSP Builder extensions (note that the proper download is not the recommended download - you'll need the 2010 BETA 1.4). They give new project types which include event receivers. Note though that there are some quirks with those project types but overall they are very helpful to getting the project set up correctly.

Be sure to read the documentation regarding the folder/file layout of your projects. If done correctly, you can use WSPBuilder to generate your WSPs for you.

A quick search revealed this blog post which might help get you started with regard to project structure. I'm sure there are many, many more references available. Happy coding!

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