Export (0) Print
Expand All

SPItemEventReceiver.ItemUpdating method

Handles the synchronous event that occurs before an item is changed.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

'Declaration
PublicOverridableSubItemUpdating ( _
	propertiesAsSPItemEventProperties _
)
'Usage
DiminstanceAsSPItemEventReceiverDimpropertiesAsSPItemEventProperties

instance.ItemUpdating(properties)

Parameters

properties
Type: Microsoft.SharePoint.SPItemEventProperties

The properties of the event handler.

ExceptionCondition
ArgumentNullException

properties is null .

This event can be used in response, for example, to a form edit, a datasheet post, an object model call, or a Web service call.

When you add a new item, only the ItemAdding event is raised. However, in cases where Explorer View is used, both the ItemAdding and this events are raised. In such cases, this event always occurs after the ItemAdding event occurs.

When a Boolean column value in a list is set to true and the ItemUpdating method is called, the AfterProperties property reports -1 as the value instead.

Show:
© 2014 Microsoft