How to get currently adding item to SPList from SPItemEventProperties inside event handler?
问题 I'm using ItemAdding Event for one of my SPLists. The question is how I can get the new not yet added item from SPItemEventProperties? I've tried to ListItem.Item but the debuger shows that the property is set to Nothing. Any correction suggest? Best Regards T.S. 回答1: Ihe ItemAdding event fires before a recored is actually added so you can't access the fields using .Item. However you can access everything apart from ID (as its still not been created yet) in the .AfterProperties hash table.