# C1.Schedule.C1ScheduleStorage.Import

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_C1ScheduleStorage_Import_" data-uid="C1.Schedule.C1ScheduleStorage.Import*">Import Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_C1ScheduleStorage_Import_" data-uid="C1.Schedule.C1ScheduleStorage.Import*"></a>
<h4 id="C1_Schedule_C1ScheduleStorage_Import_System_String_C1_Schedule_FileFormatEnum_" data-uid="C1.Schedule.C1ScheduleStorage.Import(System.String,C1.Schedule.FileFormatEnum)">Import(string, FileFormatEnum)</h4>
<div class="markdown level1 summary"><p>Imports data into the scheduler from a file of the specified format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Import(string path, FileFormatEnum format)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Import(path As String, format As FileFormatEnum)</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.string">string</a></td>
      <td><span class="parametername">path</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value containing the full path
(including the file name and extension) to a file which contains
the data to be imported into 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>


<a id="C1_Schedule_C1ScheduleStorage_Import_" data-uid="C1.Schedule.C1ScheduleStorage.Import*"></a>
<h4 id="C1_Schedule_C1ScheduleStorage_Import_System_IO_Stream_C1_Schedule_FileFormatEnum_" data-uid="C1.Schedule.C1ScheduleStorage.Import(System.IO.Stream,C1.Schedule.FileFormatEnum)">Import(Stream, FileFormatEnum)</h4>
<div class="markdown level1 summary"><p>Imports the scheduler's data from a stream whose data is in the specified format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Import(Stream stream, FileFormatEnum format)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Import(stream As Stream, format As FileFormatEnum)</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>
</div>
