SPListEvent Class

The SPListEvent class represents an event that occurs within a document library.

System.Object

   Microsoft.SharePoint.SPListEvent

Public Properties

The following table shows the public properties of the SPListEvent class, the data type of each property, and a brief description of each.

Name Data Type Description
ListID System.Guid Gets the GUID of the document library in which the event occurred.
PropertiesAfter System.Collections.Hashtable Gets a collection of key-and-value pairs that represent the state of a document in a document library after the document was modified.
PropertiesBefore System.Collections.Hashtable Gets a collection of key-and-value pairs that represent the state of a document in a document library before the document was modified.
SinkData String Gets an arbitrary string of properties used by an event handler for a document library.
Site Microsoft.SharePoint.SPSite Gets the parent site of the list in which the event occurs.
Title String Gets the title of the document library in which the event occurs.
Type Microsoft.SharePoint.SPListEventType Gets the type of an event that occurs in a document library.
UrlAfter String Gets the new site-relative URL of a document or folder that is copied or renamed.
UrlBefore String Gets the original site-relative URL of a document or folder before it was deleted, moved, or copied.
UserDisplayName String Gets the display name of the user whose action triggers the event.
UserID Int32 Gets the ID of the user whose action triggers the event.
UserLoginName String Gets the user name of the user whose action triggers the event.
WebUrl String Gets the absolute URL of the site in which the event occurred.

Thread Safety

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

Remarks

For more information on document library events, see Handling Document Library Events.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security