This documentation is archived and is not being maintained.

SPEventPropertiesBase Class

Windows SharePoint Services 3

Base class that provides the event properties that are common to all event types. This class is never instantiated.

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

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPEventPropertiesBase

The SPEventPropertiesBase class is not instantiated but provides methods for classes deriving from it that are listed in the Inheritance Hierarchy section below.

The following example of an event handler method overrides the ItemDeleting() method and uses inherited properties of the SPEventPropertiesBase class to cancel an event and display an error message.

public override void ItemDeleting(SPItemEventProperties properties)
    properties.Cancel = true;
    properties.ErrorMessage = "Deleting items is not supported.";

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