SPListEventReceiver Class

Provides methods to trap events that are raised for lists. This class is never instantiated.

Inheritance Hierarchy


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


<SubsetCallableTypeAttribute> _
Public Class SPListEventReceiver _
    Inherits SPEventReceiverBase
Dim instance As SPListEventReceiver
public class SPListEventReceiver : SPEventReceiverBase


The SPListEventReceiver class is not instantiated, but the list event receiver class of a custom event handler must derive from this class and override its methods for the event types that are handled.

The SPListEventReceiver class notifies registered entities of list schema events, supporting list schema operations and the addition or removal of content types.

Like other events, list events come in both Before synchronous and After asynchronous variants. List events are not generally raised as the result of a bulk operation. For example, creating a new Microsoft SharePoint Foundation list inherently creates a set of fields, but FieldAdding events are not raised.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


SPListEventReceiver Members

Microsoft.SharePoint Namespace