title: How to create appointment with all in Outlook c#
body: <p>I have troubles with sending appointments to shared calendar programatically. I know that the standard way is as below:</p>
  <pre><code>MAPIFolder sharedFolder = mapiNamespace.GetSharedDefaultFolder(recipient, OlDefaultFolders.olFolderCalendar);
  Outlook.AppointmentItem newAppointment = sharedFolder.Items.Add(Outlook.OlItemType.olAppointmentItem) as Outlook.AppointmentItem;
  //Outlook.AppointmentItem newAppointment = sharedFolder.Items.Add(&quot;IPM.Appointment&quot;); ///Second option
   
  </code></pre>
  <p>But probably it is equal to clicking into shared calendar and require write rights.</p>
  <p>I need to do it as below in GUI, this allow to send appointment even if I do not have write rights:</p>
  <p>NOTE: (In English) New appointment --&gt; New appointment with all</p>
  <p><a href="https://i.stack.imgur.com/NKM8V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NKM8V.png" alt="enter image description here" /></a></p>
  <p>NOTE2: If I send it by standard way (see code below), it will not send it to shared folder.</p>
  <pre><code>Outlook.AppointmentItem newAppointment = (Outlook.AppointmentItem)application.CreateItem(Outlook.OlItemType.olAppointmentItem);
  newAppointment.Start = startT;// DateTime.Now.AddHours(2);
  newAppointment.End = stopT;
  newAppointment.Subject = name;
  newAppointment.Location = loc;
  newAppointment.Body = body;
  newAppointment.AllDayEvent = false;
  //newAppointment.Recipients.Add(application.Session.CurrentUser.Name);
  for (int i = 0; i &lt; rec.Count; i++) newAppointment.Recipients.Add(rec[i]);
  Outlook.Recipients sentTo = newAppointment.Recipients;
  sentTo.ResolveAll();
  newAppointment.Save();
  newAppointment.Display(true);
  newAppointment.Send();
  newAppointment.Close(OlInspectorClose.olSave);
  </code></pre>
  <p>Thank you in advance for your answers.</p>