# C1.Zip.C1ZipEntryCollection.ExtractAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync*">ExtractAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Zip_C1ZipEntryCollection_ExtractAsync_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync*"></a>
<h4 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_Int32_System_String_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync(System.Int32,System.String)">ExtractAsync(int, string)</h4>
<div class="markdown level1 summary"><p>Asynchronous extracts a file from the current zip file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task ExtractAsync(int index, string destFileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ExtractAsync(index As Integer, destFileName As String) As Task</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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>Index of the entry to extract.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">destFileName</span></td>
      <td><p>Name and location of the extracted file.</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.threading.tasks.task">Task</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Zip_C1ZipEntryCollection_ExtractAsync_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync*"></a>
<h4 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_String_System_String_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync(System.String,System.String)">ExtractAsync(string, string)</h4>
<div class="markdown level1 summary"><p>Asynchronous extracts a file from the current zip file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task ExtractAsync(string entryName, string destFileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ExtractAsync(entryName As String, destFileName As String) As Task</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">entryName</span></td>
      <td><p>Name of the entry to extract.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">destFileName</span></td>
      <td><p>Name and location of the extracted file.</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.threading.tasks.task">Task</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_String_System_String__examples">Examples</h5>
<p>To read from the zip archive use ExtractAsync(filePath) and ExtractAsync(stream):</p>



<a id="C1_Zip_C1ZipEntryCollection_ExtractAsync_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync*"></a>
<h4 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_Int32_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync(System.Int32)">ExtractAsync(int)</h4>
<div class="markdown level1 summary"><p>Asynchronous extracts a file from the current zip file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task ExtractAsync(int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ExtractAsync(index As Integer) As Task</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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>Index of the entry to extract.</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.threading.tasks.task">Task</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The entry is extracted to a file in the same folder as the current zip
file, with the same name as the entry.</p>
</div>


<a id="C1_Zip_C1ZipEntryCollection_ExtractAsync_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync*"></a>
<h4 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_String_" data-uid="C1.Zip.C1ZipEntryCollection.ExtractAsync(System.String)">ExtractAsync(string)</h4>
<div class="markdown level1 summary"><p>Asynchronous extracts a file from the current zip file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task ExtractAsync(string entryName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ExtractAsync(entryName As String) As Task</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">entryName</span></td>
      <td><p>Name of the entry to extract.</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.threading.tasks.task">Task</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Zip_C1ZipEntryCollection_ExtractAsync_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The entry is extracted to a file in the same folder as the current zip
file, with the same name as the entry.</p>
</div>
</div>
