# C1.Web.Api.Storage.IFileStorage

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Api_Storage_IFileStorage" data-uid="C1.Web.Api.Storage.IFileStorage" class="text-break">IFileStorage Interface
</h1>
  <div class="markdown level0 summary"><p>The file storage interface.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Api.Storage.html">C1.Web.Api.Storage</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Api.dll</h6>
  <h5 id="C1_Web_Api_Storage_IFileStorage_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IFileStorage : IStorage</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IFileStorage
    Inherits IStorage</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Api_Storage_IFileStorage_ReadOnly" data-uid="C1.Web.Api.Storage.IFileStorage.ReadOnly">
          <a class="xref" href="C1.Web.Api.Storage.IFileStorage.ReadOnly.html#C1_Web_Api_Storage_IFileStorage_ReadOnly">ReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified file is read only.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Api_Storage_IFileStorage_Delete" data-uid="C1.Web.Api.Storage.IFileStorage.Delete">
          <a class="xref" href="C1.Web.Api.Storage.IFileStorage.Delete.html#C1_Web_Api_Storage_IFileStorage_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Delete the file from storage.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_Storage_IFileStorage_Read" data-uid="C1.Web.Api.Storage.IFileStorage.Read">
          <a class="xref" href="C1.Web.Api.Storage.IFileStorage.Read.html#C1_Web_Api_Storage_IFileStorage_Read">Read()</a>
        </td>
        <td class="markdown level1 summary"><p>Read the file stream.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_Storage_IFileStorage_Write_System_IO_Stream_" data-uid="C1.Web.Api.Storage.IFileStorage.Write(System.IO.Stream)">
          <a class="xref" href="C1.Web.Api.Storage.IFileStorage.Write.html#C1_Web_Api_Storage_IFileStorage_Write_System_IO_Stream_">Write(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Write a stream to file, if the file already exists, it is overwritten.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
