This documentation is archived and is not being maintained.

SPItemEventReceiver.ItemAttachmentAdded Method

Windows SharePoint Services 3

Asynchronous After event that occurs after a user adds an attachment to an item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public virtual void ItemAttachmentAdded(
	SPItemEventProperties properties
)

The ItemAttachmentAdded event occurs when an attachment is added to a list item but no other updates occur. The event occurs after the ItemUpdated() event if other changes are made to the item.

Before and After properties are guaranteed for post events on documents, but Before properties are not available for post events on list items.

Show: