# GrapeCity.Documents.Excel.Workbook.GetNames

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Workbook_GetNames_" data-uid="GrapeCity.Documents.Excel.Workbook.GetNames*">GetNames Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Workbook_GetNames_" data-uid="GrapeCity.Documents.Excel.Workbook.GetNames*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_GetNames_System_String_" data-uid="GrapeCity.Documents.Excel.Workbook.GetNames(System.String)">GetNames(string)</h4>
<div class="markdown level1 summary"><p>Gets all sheet names and tables names that will be used as the parameter source of ImportData.<br>If the name is a table name, the worksheet name is qualified before the table name, such as &quot;Sheet1!Table1&quot;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string[] GetNames(string fileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetNames(fileName As String) As String()</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The path and name for the file.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><p>An array of possible import names.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Workbook_GetNames_" data-uid="GrapeCity.Documents.Excel.Workbook.GetNames*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_GetNames_System_IO_Stream_" data-uid="GrapeCity.Documents.Excel.Workbook.GetNames(System.IO.Stream)">GetNames(Stream)</h4>
<div class="markdown level1 summary"><p>Gets all sheet names and tables names that will be used as the parameter source of ImportData.<br>If the name is a table name, the worksheet name is qualified before the table name, such as &quot;Sheet1!Table1&quot;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string[] GetNames(Stream fileStream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetNames(fileStream As Stream) As String()</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">fileStream</span></td>
      <td><p>The fileStream of a workbook.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><p>An array of possible import names.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
