如何将SPEmailEventReceiver附加到doc库?

时间:2013-11-13 05:43:52

标签: sharepoint-2010 event-receiver

将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呢?

1 个答案:

答案 0 :(得分:0)

使用VS非常简单,只需在选择列表电子邮件事件后选择库(使用新元素选择“事件接收器”),然后在代码隐藏中使用List参数,您可以检查库是否是您需要比较的库: ID,名称,网址等。