SPItemEventReceiver.ItemAdding Method (Microsoft.SharePoint)
Synchronous Before event that occurs when a new item is added to its containing object.

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

Visual Basic (Declaration)
Public Overridable Sub ItemAdding ( _
    properties As SPItemEventProperties _
)
Visual Basic (Usage)
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

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

Parameters

properties
Remarks

This event occurs in the following situations:

  • Default data is populated from a template.

  • New items are created using the browser user interface.

  • New items are added using the object model or Web service.

See Also

Tags :


Community Content

Luke_Adams
ItemAdding Does not allow access to the Item Properties
Just a heads up that ItemAdding Event Does NOT allow access to the Items Properties.
Tags :

Omar Damiani
Accessing the Items Properties

ItemAdding, as all before events, has its Items properties in the AfterProperties collection.

NOTE: The ID is still unreachable, since the Item has not been created yet

Tags :

Martin Winzig
Items proproperties are stored in AfterCollection collection

Only issue is that user don't see(values aren't enumerated) values stored in this collection during debuging. :)

Tags :

SelviB
Bug - event does not fire in Document Library
I have the same problem with event itemupdating
Tags : contentbug

Page view tracker