1 out of 7 rated this helpful - Rate this topic

SPWebEventReceiver Class

Windows SharePoint Services 3
Provides methods for trapping events that occur to Web sites. 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 SPWebEventReceiver : SPEventReceiverBase

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

This class provides a way to register and trap general events for a Web site.

System.Object
   Microsoft.SharePoint.SPEventReceiverBase
    Microsoft.SharePoint.SPWebEventReceiver
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.