# C1.Zip.C1ZipFile.TempFileName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Zip_C1ZipFile_TempFileName_" data-uid="C1.Zip.C1ZipFile.TempFileName*">TempFileName Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Zip_C1ZipFile_TempFileName_" data-uid="C1.Zip.C1ZipFile.TempFileName*"></a>
<h4 id="C1_Zip_C1ZipFile_TempFileName" data-uid="C1.Zip.C1ZipFile.TempFileName">TempFileName</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of the temporary file to use when adding entries to the 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 string TempFileName { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property TempFileName As String</code></pre>
</div>
<h5 id="C1_Zip_C1ZipFile_TempFileName_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p><a class="xref" href="C1.Zip.C1ZipFile.html">C1ZipFile</a> creates temporary streams while adding entries to a zip file.
These temporary streams can be memory-based or disk-based, depending on the size of the
entry and on the setting of the <a class="xref" href="C1.Zip.C1ZipFile.MemoryThreshold.html#C1_Zip_C1ZipFile_MemoryThreshold">MemoryThreshold</a> property.</p>
If a temporary file is used, <a class="xref" href="C1.Zip.C1ZipFile.html">C1ZipFile</a> you can control its location by 
setting the <a class="xref" href="C1.Zip.C1ZipFile.TempFileName.html#C1_Zip_C1ZipFile_TempFileName">TempFileName</a> property. If you don't select a path for the 
temporary file, <a class="xref" href="C1.Zip.C1ZipFile.html">C1ZipFile</a> will create one automatically using the 
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.path.gettempfilename">GetTempFileName()</a> method.
</div>
</div>
