Export (0) Print
Expand All

SPItemEventReceiver.ItemAttachmentDeleted Method

Handles the asynchronous event that occurs after an attachment is removed from an item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

'Declaration
Public Overridable Sub ItemAttachmentDeleted ( _
	properties As SPItemEventProperties _
)
'Usage
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

instance.ItemAttachmentDeleted(properties)

Parameters

properties
Type: Microsoft.SharePoint.SPItemEventProperties

The properties of the event handler.

ExceptionCondition
ArgumentNullException

properties is null .

This event occurs when an attachment is removed from a list item, but no other updates occur. This event occurs after the ItemUpdated event if other changes are made to the item.

This event does not occur if the item itself is removed.

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

Show:
© 2014 Microsoft