# C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.BindCubeService

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Olap_Fluent_PivotEngineBuilder_BindCubeService_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.BindCubeService*">BindCubeService Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Olap_Fluent_PivotEngineBuilder_BindCubeService_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.BindCubeService*"></a>
<h4 id="C1_Web_Mvc_Olap_Fluent_PivotEngineBuilder_BindCubeService_System_String_System_String_System_String_System_String_System_String_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.BindCubeService(System.String,System.String,System.String,System.String,System.String)">BindCubeService(string, string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Sets CubeService by builder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PivotEngineBuilder BindCubeService(string url, string cube, string catalog = null, string user = null, string password = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function BindCubeService(url As String, cube As String, Optional catalog As String = Nothing, Optional user As String = Nothing, Optional password As String = Nothing) As PivotEngineBuilder</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">url</span></td>
      <td><p>The url of the SSAS server.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cube</span></td>
      <td><p>The OLAP cube in the SSAS server.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">catalog</span></td>
      <td><p>The catalog name</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">user</span></td>
      <td><p>The username in the SSAS server for windows authentication</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>The password in the SSAS server for windows authentication</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="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.html">PivotEngineBuilder</a></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Olap_Fluent_PivotEngineBuilder_BindCubeService_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.BindCubeService*"></a>
<h4 id="C1_Web_Mvc_Olap_Fluent_PivotEngineBuilder_BindCubeService_System_Action_C1_Web_Mvc_Olap_Fluent_CubeServiceBuilder__" data-uid="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.BindCubeService(System.Action{C1.Web.Mvc.Olap.Fluent.CubeServiceBuilder})">BindCubeService(Action&lt;CubeServiceBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Sets CubeService by builder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PivotEngineBuilder BindCubeService(Action&lt;CubeServiceBuilder&gt; cubeServiceBuild)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function BindCubeService(cubeServiceBuild As Action(Of CubeServiceBuilder)) As PivotEngineBuilder</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.action-1">Action</a>&lt;<a class="xref" href="C1.Web.Mvc.Olap.Fluent.CubeServiceBuilder.html">CubeServiceBuilder</a>&gt;</td>
      <td><span class="parametername">cubeServiceBuild</span></td>
      <td><p>The build action for setting CubeService.</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="C1.Web.Mvc.Olap.Fluent.PivotEngineBuilder.html">PivotEngineBuilder</a></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
