title: How to cancel an calendar event using ics files?
body: <p>One of our requirements is to create iCalendar files (.ics) and send them each in emails as an attachment. We are using <a href="http://sourceforge.net/projects/dday-ical/" rel="noreferrer">DDay.Ical.dll</a> to create ics files as under:</p>
  
  <pre class="lang-cs prettyprint-override"><code>// Create a new iCalendar
  iCalendar iCal = new iCalendar();
  
  // Create the event, and add it to the iCalendar
  Event evt = iCal.Create&lt;Event&gt;();
  
  // Set information about the event
  evt.Start = new iCalDateTime(SomeStartTime);
  evt.End = new iCalDateTime(SomeEndTime);
  evt.Location = "At so and so place";
  evt.Description = "Some Description";
  evt.Summary = "About Some Subject";
  iCal.Method = "PUBLISH";
  
  // Serialize (save) the iCalendar
  iCalendarSerializer serializer = new iCalendarSerializer();
  serializer.Serialize(iCal, @"iCalendar.ics");
  </code></pre>
  
  <p>Complete process is:</p>
  
  <ol>
  <li>User1 create an iCal file for specific date and time and send it to User2.</li>
  <li>User2 will open the ics file and accept the invitation. An appointment item will be created in User2's LOCAL outlook.</li>
  </ol>
  
  <p>Now, Suppose, because of any reason if appointment is cancelled, then User1 HAS to create an ics file and send it to User2, so that User2 can cancel his event from the local outlook.</p>
  
  <p>How to create such ics file?</p>