什么是有效的 SPAlert EventTypeBitmask 值?
根据互联网上的许多博客,当从代码创建 SharePoint 警报 (SPAlert) 时,您必须指定 EventType 和 EventTypeBitmask 的值。 但是,我找不到有关 EventTypeBitmask 值的任何解释。 我使用 SharePoint Web GUI 创建了一些警报,并检查了所创建警报的 EventTypeBitmask 值。 但它们似乎没有多大意义。
有谁知道应该使用哪些值?
According to many blogs on the internet when creating a SharePoint alert (SPAlert) from code you have to specify values for both the EventType and the EventTypeBitmask. However, I cannot find any explanation about the values of EventTypeBitmask. I created some alerts using the SharePoint web GUI and inspected the EventTypeBitmask values of the created alerts. But they don't seem to make much sense.
Does anybody know which values should be used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Reflector 的帮助下,EventTypeBitmask 的识别值由此枚举定义:
根据文档,如果未指定,则行为为 All (0xffffffff)。
由于此枚举没有记录,因此您可以从中获取任何信息。 我的猜测是“发现”意味着新项目,“修改”意味着更改的项目。
With the help of Reflector, the recognised values for EventTypeBitmask are defined by this enum:
According to the documentation, the behaviour is All (0xffffffff) if not specified.
As this enum is undocumented, derive from it what you can. My guess is that Discovered means new items and Modified means changed items.