# GrapeCity.Documents.Excel.Expressions.WorkbookReference.BaseDirectory

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Expressions_WorkbookReference_BaseDirectory_" data-uid="GrapeCity.Documents.Excel.Expressions.WorkbookReference.BaseDirectory*">BaseDirectory Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Expressions_WorkbookReference_BaseDirectory_" data-uid="GrapeCity.Documents.Excel.Expressions.WorkbookReference.BaseDirectory*"></a>
<h4 id="GrapeCity_Documents_Excel_Expressions_WorkbookReference_BaseDirectory" data-uid="GrapeCity.Documents.Excel.Expressions.WorkbookReference.BaseDirectory">BaseDirectory</h4>
<div class="markdown level1 summary"><p>The base directory that contains workbook.
If the value is not <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (<code>Nothing</code>),
<a class="xref" href="GrapeCity.Documents.Excel.Expressions.WorkbookReference.Name.html#GrapeCity_Documents_Excel_Expressions_WorkbookReference_Name">Name</a> is the file name of workbook.
If the value is empty, the path is the root directory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string BaseDirectory { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property BaseDirectory As String</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_Expressions_WorkbookReference_BaseDirectory_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Caution: <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.path.combine#system-io-path-combine(system-string-system-string)">Combine(string, string)</a>
has different strategy for <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a> and
<a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (<code>Nothing</code>).
Check this value with <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.isnullorempty">IsNullOrEmpty(string)</a>
(or use <code>= Nothing</code> in Visual Basic)
before passing it to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.path.combine#system-io-path-combine(system-string-system-string)">Combine(string, string)</a>.</p>
</div>
</div>
