title: Update Event SharePoint Calender C#
body: <p>I can create event on SharePoint calender using <code>C#</code> code , but is it possible to update this event using <code>C#</code>? I tried this code, to add the event as a new one but can't delete the old one using <code>C#</code>:</p>
  
  <pre><code>SPList list = web.Lists.TryGetList(sCalendarName);
  if (list != null)
  {
     SPListItem item = list.Items.Add();
     item["Title"] = "New Event";
     item["Description"] = "New Event created using SharePoint Object Model";
     item["Location"] = "First Floor";
     item["EventDate"] = DateTime.Now;
     item["EndDate"] = DateTime.Now.AddDays(2);
     item["Category"] = "Business";
     item["fAllDayEvent"] = false;
     item["Author"] = web.EnsureUser(@"domen\username");
     item.Update();
  }
  </code></pre>