English 中文(简体)
项目附加触发器三次
原标题:ItemAdded triggers three times

我又增加了一个项目接收器,用于一个分享点文件图书馆,所有东西都用我的计算机进行细微工作。 我在守则中进行了检查,我的同事从我们的土耳其武装部队那里获得了最新的法典,建立了该项目并进行了测试。

在我的同事的电脑上,项目补充活动在他补充“共同点”文件时触发了三次。

在我的电脑上,它只触发一次。

你们是否看到过类似的东西,你们知道如何解决这一问题?

问题回答

名单上有类似的内容类型? 我记得一个问题,即各种事件一度都会在名单上打下。

工作方式是通过使用现有项目的内容类型加以检查。

properties.ListItem[SPBuiltInFieldId.ContentTypeId]

这一工作在我们的解决办法中是出色的。 在MSDN方面,有一篇文章描述了这一问题。 实际上,我可以记住这些确切的联系。 货物

ors

我将建议分享项目编号。

Also as long it works ok on most of ur machines and issue is with 1 machine , you are good.. Just get a new site collection , retract-delete solution fully , IISReset and deploy the solution again

我发现,在去除多载上链路后,它只是一次把物品加在一起。





相关问题
SharePoint 2010 Blog site template and post security

I asked this question on msdn forums but got no response in 24 hours. I am pasting the question here, I am sure you guys out there can help me :) This is my first post: I created a blog site with SP ...

Sharepoint 2010 - Custom Ribbon

i m developing a sharepoint project and central admin pages (located in _layouts), and i want to use Ribbon bar. i have found this sample but i hope so, it is wrong.. http://sharepointsolutions.com/...

Printing an InfoPath 2010 form in SharePoint 2010

Does anyone know where the option to print an infopath form (in my case a customized list form) exists in SharePoint 2010? In MOSS this functionality comes out of the box but either I am missing ...

Sharepoint 2010 Email Event Receiver not firing?

I have two event recievers setup on a list in 2010. The first is a ItemAdded reciever that works every time: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft....

Access Services and SharePoint 2010 - Need Info

I ve been asked to research the ability to publish Access solutions directly to SharePoint as demonstrated in the demo below. http://channel9.msdn.com/shows/Access/Microsoft-Access-2010-Demo/ I m ...

热门标签