Tvorba event handleru
*Event handler je .NET assembly obsahující jednu a více tříd zpracovávajících události WSS
*Microsoft.SharePoint.dll
*Potomek WSS třídy
*SPItemEventReceiver nebo
*SPWebEventReciever
using Microsoft.SharePoint;
namespace Demos {
 public class MyEventHandler: SPItemEventReceiver {
    public override void ItemDeleting(SPItemEventProperties properties)  {
      properties.Cancel = true;
      properties.ErrorMessage = “my message";
    }

    public override void ItemDeleted(SPItemEventProperties properties)  {
      // neco udelame
    }
 }
}
Instructor Notes
This slide presents an example of an event handler that fires whenever an item in the timesheets classes is updated. Step through the event reciever code and explain how the properties parameter can be used to obtain a reference to the list and list item in question. Also explain the mechanics involved with cancalling the user's actions within an event.