Export (0) Print
Expand All

SPItemEventReceiver.ItemAttachmentAdding method

Handles the synchronous event that occurs before an attachment is added to an item.

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

public virtual void ItemAttachmentAdding(
	SPItemEventProperties 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 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.

Show:
© 2014 Microsoft