# C1.Zip.C1ZipFile.MemoryThreshold

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Zip_C1ZipFile_MemoryThreshold_" data-uid="C1.Zip.C1ZipFile.MemoryThreshold*">MemoryThreshold Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Zip_C1ZipFile_MemoryThreshold_" data-uid="C1.Zip.C1ZipFile.MemoryThreshold*"></a>
<h4 id="C1_Zip_C1ZipFile_MemoryThreshold" data-uid="C1.Zip.C1ZipFile.MemoryThreshold">MemoryThreshold</h4>
<div class="markdown level1 summary"><p>Gets or sets the size of the largest stream to be compressed in memory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int MemoryThreshold { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MemoryThreshold As Integer</code></pre>
</div>
<h5 id="C1_Zip_C1ZipFile_MemoryThreshold_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p><a class="xref" href="C1.Zip.C1ZipFile.html">C1ZipFile</a> compresses entries into temporary streams before
adding them to the zip file.</p>
<p>Entries with fewer than <a class="xref" href="C1.Zip.C1ZipFile.MemoryThreshold.html#C1_Zip_C1ZipFile_MemoryThreshold">MemoryThreshold</a> bytes are compressed
using a temporary memory stream.</p>
<p>Entries with more than <a class="xref" href="C1.Zip.C1ZipFile.MemoryThreshold.html#C1_Zip_C1ZipFile_MemoryThreshold">MemoryThreshold</a> bytes are compressed
using a temporary file. You can control the location of the temporary file using
the <a class="xref" href="C1.Zip.C1ZipFile.TempFileName.html#C1_Zip_C1ZipFile_TempFileName">TempFileName</a> property.</p>
</div>
</div>
