# C1.Web.Api.Storage.DiskStorageProvider

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Api_Storage_DiskStorageProvider" data-uid="C1.Web.Api.Storage.DiskStorageProvider" class="text-break">DiskStorageProvider Class
</h1>
  <div class="markdown level0 summary"><p>The disk storage provider.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DiskStorageProvider</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Web.Api.Storage.IStorageProvider.html">IStorageProvider</a></div>
  </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_DiskStorageProvider_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DiskStorageProvider : IStorageProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DiskStorageProvider
    Implements IStorageProvider</code></pre>
  </div>
  <h3 id="constructors">Constructors
</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_DiskStorageProvider__ctor_System_String_" data-uid="C1.Web.Api.Storage.DiskStorageProvider.#ctor(System.String)">
          <a class="xref" href="C1.Web.Api.Storage.DiskStorageProvider.-ctor.html#C1_Web_Api_Storage_DiskStorageProvider__ctor_System_String_">DiskStorageProvider(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="C1.Web.Api.Storage.DiskStorageProvider.html">DiskStorageProvider</a> with disk path which is used as the root path.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_DiskStorageProvider_Root" data-uid="C1.Web.Api.Storage.DiskStorageProvider.Root">
          <a class="xref" href="C1.Web.Api.Storage.DiskStorageProvider.Root.html#C1_Web_Api_Storage_DiskStorageProvider_Root">Root</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the disk path which is used as the root path.</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_DiskStorageProvider_GetDirectoryStorage_System_String_System_Collections_Specialized_NameValueCollection_" data-uid="C1.Web.Api.Storage.DiskStorageProvider.GetDirectoryStorage(System.String,System.Collections.Specialized.NameValueCollection)">
          <a class="xref" href="C1.Web.Api.Storage.DiskStorageProvider.GetDirectoryStorage.html#C1_Web_Api_Storage_DiskStorageProvider_GetDirectoryStorage_System_String_System_Collections_Specialized_NameValueCollection_">GetDirectoryStorage(string, NameValueCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Web.Api.Storage.IDirectoryStorage.html">IDirectoryStorage</a> with specified name and arguments.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_Storage_DiskStorageProvider_GetFileStorage_System_String_System_Collections_Specialized_NameValueCollection_" data-uid="C1.Web.Api.Storage.DiskStorageProvider.GetFileStorage(System.String,System.Collections.Specialized.NameValueCollection)">
          <a class="xref" href="C1.Web.Api.Storage.DiskStorageProvider.GetFileStorage.html#C1_Web_Api_Storage_DiskStorageProvider_GetFileStorage_System_String_System_Collections_Specialized_NameValueCollection_">GetFileStorage(string, NameValueCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Web.Api.Storage.IFileStorage.html">IFileStorage</a> with specified name and arguments.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
