SPItemEventReceiver.ItemAttachmentAdding Method (Microsoft.SharePoint)
Synchronous Before event that occurs when a user adds an attachment to an item.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public Overridable Sub ItemAttachmentAdding ( _
    properties As SPItemEventProperties _
)
Visual Basic (Usage)
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

instance.ItemAttachmentAdding(properties)
C#
public virtual void ItemAttachmentAdding (
    SPItemEventProperties properties
)

Parameters

properties
Remarks

The ItemAttachmentAdding event occurs when an attachment is added to a list item but no other updates occur. The event occurs before the >ItemUpdating event if other changes are made to the item.

See Also

Tags :


Page view tracker