# GrapeCity.Documents.Pdf.FileSpecification.RelatedFile

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile" class="text-break">FileSpecification.RelatedFile Class
</h1>
  <div class="markdown level0 summary"><p>Represents information about a related file.</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">FileSpecification.RelatedFile</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Common.IOwnedObject.html">IOwnedObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Pdf.html">GrapeCity.Documents.Pdf</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Pdf.dll</h6>
  <h5 id="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FileSpecification.RelatedFile : IOwnedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FileSpecification.RelatedFile
    Implements IOwnedObject</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="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile__ctor_System_String_GrapeCity_Documents_Pdf_EmbeddedFileStream_" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.#ctor(System.String,GrapeCity.Documents.Pdf.EmbeddedFileStream)">
          <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.-ctor.html#GrapeCity_Documents_Pdf_FileSpecification_RelatedFile__ctor_System_String_GrapeCity_Documents_Pdf_EmbeddedFileStream_">RelatedFile(string, EmbeddedFileStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.html">FileSpecification.RelatedFile</a> class.</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="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_EmbeddedFileStream" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.EmbeddedFileStream">
          <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.EmbeddedFileStream.html#GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_EmbeddedFileStream">EmbeddedFileStream</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.Documents.Pdf.EmbeddedFileStream.html">EmbeddedFileStream</a> holding the file content.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_FileInfo" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.FileInfo">
          <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.FileInfo.html#GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_FileInfo">FileInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.FileInfo.html">FileSpecification.FileInfo</a> object owning this object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_FileName" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.FileName">
          <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.FileName.html#GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_FileName">FileName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the file name of the related file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_FileSpecification" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.FileSpecification">
          <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.FileSpecification.html#GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_FileSpecification">FileSpecification</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.html">FileSpecification</a> object owning this object.</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="GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_GetStream" data-uid="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.GetStream">
          <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.GetStream.html#GrapeCity_Documents_Pdf_FileSpecification_RelatedFile_GetStream">GetStream()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> containing the content of this <a class="xref" href="GrapeCity.Documents.Pdf.FileSpecification.RelatedFile.html">FileSpecification.RelatedFile</a>,
or null if the file specification is empty.</p>
<p>Important: this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> must be disposed after use.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
