# C1.Web.Api.FormFile

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Api_FormFile" data-uid="C1.Web.Api.FormFile" class="text-break">FormFile Class
</h1>
  <div class="markdown level0 summary"><p>This class defines the file from form post.</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">FormFile</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Api.html">C1.Web.Api</a></h6>
  <h6><strong>Assembly</strong>: C1.Web.Api.dll</h6>
  <h5 id="C1_Web_Api_FormFile_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FormFile</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FormFile</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_FormFile__ctor_System_IO_Stream_System_String_" data-uid="C1.Web.Api.FormFile.#ctor(System.IO.Stream,System.String)">
          <a class="xref" href="C1.Web.Api.FormFile.-ctor.html#C1_Web_Api_FormFile__ctor_System_IO_Stream_System_String_">FormFile(Stream, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Create a FormFile with specified stream and file extension.</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_FormFile_Extension" data-uid="C1.Web.Api.FormFile.Extension">
          <a class="xref" href="C1.Web.Api.FormFile.Extension.html#C1_Web_Api_FormFile_Extension">Extension</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the file extension.</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_FormFile_GetStream" data-uid="C1.Web.Api.FormFile.GetStream">
          <a class="xref" href="C1.Web.Api.FormFile.GetStream.html#C1_Web_Api_FormFile_GetStream">GetStream()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the file stream.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
