Handles the synchronous event that occurs before an attachment is added to an item.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
'Declaration Public Overridable Sub ItemAttachmentAdding ( _ properties As SPItemEventProperties _ ) 'Usage Dim instance As SPItemEventReceiver Dim properties As SPItemEventProperties instance.ItemAttachmentAdding(properties)
- Type: Microsoft.SharePoint.SPItemEventProperties
The properties of the event handler.
This event occurs when an attachment is being added to a list item, but no other updates occur. This event occurs before the ItemUpdating event if other changes are made to the item.