I'm unable to get properties.AfterProperties
and properties.BeforeProperties
.
public override void ItemUpdating(SPItemEventProperties properties)
{
Validate(properties);
base.ItemUpdating(properties);
Validate(properties);
}
I've tried on ItemUpdated
and ItemUpdating
.
I can get to "Before" by using the SPItem
, but I can't get the AfterProperties
or "New Values"
The ONLY place I can find "New Values" is in VS2013 debug:
properties
{Microsoft.SharePoint.SPItemEventProperties} + base {Microsoft.SharePoint.SPItemEventProperties}
AfterProperties
{Microsoft.SharePoint.SPItemEventDataCollection} + ChangedProperties Count = 0 System.Collections.Hashtable
Results View Expanding the Results View will enumerate the IEnumerable
[0] {System.Collections.DictionaryEntry} Key "vti_title" object {string} Value "xx" object {string}
I've changed the Synchronization to Sync and Async with no change.
I have code from SharePoint 2010 that works, but doesn't work in 2013.
Both the AfterUrl
and BeforeUrl
are retrievable.