Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
 ItemUpdating Method

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPItemEventReceiver.ItemUpdating Method (Microsoft.SharePoint)
Synchronous Before event that occurs when an existing item is changed, for example, when the user changes data in one or more fields.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Overridable Sub ItemUpdating ( _
    properties As SPItemEventProperties _
)
Visual Basic (Usage)
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

instance.ItemUpdating(properties)
C#
public virtual void ItemUpdating (
    SPItemEventProperties properties
)

Parameters

properties

An SPItemEventProperties object that represents properties of the event handler.

The ItemUpdating 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 ItemUpdating events are raised. In such cases the ItemUpdating 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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker