0

将 SPEmailEventReceiver 附加到文档库有哪些选择?Elements 文件是否应该包含特定的库?

<Elements.xml

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <Receivers ListTemplateId="101">
  <Receiver>
    <Name>EventReceiver1EmailReceived</Name>
    <Type>EmailReceived</Type>
    <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
    <Class>EmailLogic.EventReceiver1.EventReceiver1</Class>
    <SequenceNumber>10000</SequenceNumber>
  </Receiver>

</Receivers>
</Elements>

手动,编程或powershell如何附加它?

4

1 回答 1

0

使用 VS 非常简单,只需在选择 List Email Event 后选择 Library(使用新元素选择“Event Receiver”),然后在代码隐藏中,使用 List 参数您可以检查 Library 是否是您需要比较的那个:ID、名称, 网址等

于 2013-11-13T14:21:37.990 回答