共用方式為


SPItemEventReceiver.ItemUpdated Method

Handles the asynchronous event that occurs after an item is changed.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overridable Sub ItemUpdated ( _
    properties As SPItemEventProperties _
)
'Usage
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

instance.ItemUpdated(properties)
public virtual void ItemUpdated(
    SPItemEventProperties properties
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

properties is null .

Remarks

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 ItemAdded event is raised. However, in cases where Explorer View is used, both the ItemAdded and this event are raised. In such cases, this event always occurs after the ItemAdded event occurs.

Before and After properties are guaranteed for postback events on documents, but Before properties are not available for postback events on list items.

See Also

Reference

SPItemEventReceiver Class

SPItemEventReceiver Members

Microsoft.SharePoint Namespace