Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Handles the synchronous event that occurs before an attachment is removed from an item.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Overridable Sub ItemAttachmentDeleting ( _
properties As SPItemEventProperties _
)
'Usage
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties
instance.ItemAttachmentDeleting(properties)
public virtual void ItemAttachmentDeleting(
SPItemEventProperties properties
)
properties
Type: Microsoft.SharePoint.SPItemEventProperties
The properties of the event handler.
Exception | Condition |
---|---|
ArgumentNullException | properties is null . |
This event occurs when an attachment is being removed from a list item, but no other updates occur. This event occurs after the ItemUpdating(SPItemEventProperties) event if other changes are made to the item.
This event does not occur if the item itself is removed.
Warning
When trying to remove an attachment from an item, do not use the property setting Status=CancelNoError to cancel this event, since doing so redirects the user to the "Exception from HRESULT" error page.
Please sign in to use this experience.
Sign in