OnEvent Method

The OnEvent method of the IListEventSink interface responds to changes that occur to a document in a document library.

Parameters

listEvent   A Microsoft.SharePoint.SPListEvent object that represents the event.

Remarks

The OnEvent method responds to one of the following types of changes to a document in a document library:

  • Checked in
  • Checked out
  • Check out cancelled
  • Copied
  • Deleted
  • Edited
  • Moved
  • Renamed
  • Uploaded

Windows SharePoint Services throws an exception and logs an error if the assembly for an event handler cannot be found, if the class defining an event handler cannot be found, or if for any other reason the event handler cannot be instantiated.

For an example that applies this method, see Handling Document Library Events.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security