# C1.Schedule.C1ScheduleStorage.ReadAppointments

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_C1ScheduleStorage_ReadAppointments_" data-uid="C1.Schedule.C1ScheduleStorage.ReadAppointments*">ReadAppointments Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_C1ScheduleStorage_ReadAppointments_" data-uid="C1.Schedule.C1ScheduleStorage.ReadAppointments*"></a>
<h4 id="C1_Schedule_C1ScheduleStorage_ReadAppointments_System_IO_Stream_C1_Schedule_FileFormatEnum_" data-uid="C1.Schedule.C1ScheduleStorage.ReadAppointments(System.IO.Stream,C1.Schedule.FileFormatEnum)">ReadAppointments(Stream, FileFormatEnum)</h4>
<div class="markdown level1 summary"><p>Reads appointments data from a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IList&lt;Appointment&gt; ReadAppointments(Stream stream, FileFormatEnum format)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ReadAppointments(stream As Stream, format As FileFormatEnum) As IList(Of Appointment)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> object which specifies
the stream that contains the data to import to the scheduler.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Schedule.FileFormatEnum.html">FileFormatEnum</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>The <a class="xref" href="C1.Schedule.FileFormatEnum.html">FileFormatEnum</a> value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</td>
      <td><p>Returns collection of appointments.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Schedule_C1ScheduleStorage_ReadAppointments_System_IO_Stream_C1_Schedule_FileFormatEnum__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>As opposed to the Import methods, this method doesn't add appointments to the C1ScheduleStorage. You can use it to analyze serialized data.</p>
</div>
</div>
