SPItemEventProperties.AfterProperties Property (Microsoft.SharePoint)
Gets a hash table of properties consisting of string/value pairs that correspond to fields in the SPItem object after the event occurred.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property AfterProperties As SPItemEventDataCollection
Visual Basic (Usage)
Dim instance As SPItemEventProperties
Dim value As SPItemEventDataCollection

value = instance.AfterProperties
C#
public SPItemEventDataCollection AfterProperties { get; }

Property Value

An SPItemEventDataCollection object that represents the properties of the item after the event occurred.
Remarks

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.

See Also

Tags :


Community Content

Jørn Cornelius Olsen
This property does not work as advertised for all types of events
Using the "Publish a major version" and "Unpublish this version" context menu items will fire the ItemUpdating and ItemUpdated events but the BeforeProperties are always identical to the AfterProperties. More precisely: The BeforeProperties are correct, but the AfterProperties are not.
Tags :

Page view tracker