Itemupdating properties

25-Mar-2017 13:59

I’m usually disappointed when writers employ oft-overused metaphors to describe a situation.With that in mind, Share Point 2010 is like a sea of icebergs – there is a lot going on under the surface that you may not notice until it’s too late.If you wish to modify a property value on the list item during the event, the value should be updated in After Properties property of the properties parameter.Share Point reads these values from the event parameter and modifies the item accordingly when the actual operation runs (e.g.

itemupdating properties-77itemupdating properties-35

Fortunately, there is a relatively simple way to check whether the Item Updating and Item Updated events are firing in response to a check-in outlined in Knowledgebase Article 939307.We may never know about all of the dangers lurking out there, but today we’re going to cover at least one danger you may encounter while writing event receivers – an annoying issue with the Item Updating and Item Updated events firing twice.I should also point out that I know the difference between a metaphor and simile in case that was bothering you from the opening sentence.For example, if you define an instance level variable in the class to store data in the As per the first look of Developers, we say simply, Item Updating and Item Updated events are fire twice when we adding a document to a document library that has the Require Check Out option enabled.This is not either issue with Share Point or issue with Custom Code.

Fortunately, there is a relatively simple way to check whether the Item Updating and Item Updated events are firing in response to a check-in outlined in Knowledgebase Article 939307.

We may never know about all of the dangers lurking out there, but today we’re going to cover at least one danger you may encounter while writing event receivers – an annoying issue with the Item Updating and Item Updated events firing twice.

I should also point out that I know the difference between a metaphor and simile in case that was bothering you from the opening sentence.

For example, if you define an instance level variable in the class to store data in the As per the first look of Developers, we say simply, Item Updating and Item Updated events are fire twice when we adding a document to a document library that has the Require Check Out option enabled.

This is not either issue with Share Point or issue with Custom Code.

The first time the Item Updating and Item Updated events fire it is in response to the document properties changing.