Itemupdating object evangeline lilly dating murray hone
You just have to check to see if the vti_sourcecontrolcheckedoutby property on the item was cleared: This code is using the Before Properties and After Properties on the properties parameter to see what the value of the vti_sourcecontrolcheckedoutby property on the item was before the update occurred, and what it will be after the update has completed.The vti_sourcecontrolcheckedoutby property identifies who the item is currently checked-out to.
Also note: the Item Updating and Item Updated events that fire in response to the properties being edited from the dialog will always occur, even if the user is not entering or changing any of the values.
The second time they fire it is in response to the document being checked in.
It appears as though they are firing twice in this situation because Share Point is updating the properties on the document and then checking it in on the same request.
As such, if the item is being checked-in, the Before Properties will contain a value for the property and the After Properties will not.
It’s a pretty simple fix, but we can definitely make it a bit more reusable for everyone on a development team and reduce the hassle of having to remember the specifics about how to run the check in their Item Updating and Item Updated event handlers.