# C1.Web.Api.C1ApiController.Location

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*">Location Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location_System_Linq_Expressions_Expression_System_Func_System_Func_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.Linq.Expressions.Expression{System.Func{System.Func{System.Web.Http.IHttpActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">Location(Expression&lt;Func&lt;Func&lt;IHttpActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location(Expression&lt;Func&lt;Func&lt;IHttpActionResult&gt;&gt;&gt; expression, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(expression As Expression(Of Func(Of Func(Of IHttpActionResult))), Optional values As IDictionary(Of String, Object) = Nothing) 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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<span class="xref">IHttpActionResult</span>&gt;&gt;&gt;</td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression which returns the function of calling the action method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Web_Api_C1ApiController_Location_System_Linq_Expressions_Expression_System_Func_System_Func_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object___examples">Examples</h5>
<p>Location(()=&gt;this.Action);</p>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location__1_System_Linq_Expressions_Expression_System_Func_System_Func___0_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``1(System.Linq.Expressions.Expression{System.Func{System.Func{``0,System.Web.Http.IHttpActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">Location&lt;T1&gt;(Expression&lt;Func&lt;Func&lt;T1, IHttpActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location&lt;T1&gt;(Expression&lt;Func&lt;Func&lt;T1, IHttpActionResult&gt;&gt;&gt; expression, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(Of T1)(expression As Expression(Of Func(Of Func(Of T1, IHttpActionResult))), Optional values As IDictionary(Of String, Object) = Nothing) 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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T1, <span class="xref">IHttpActionResult</span>&gt;&gt;&gt;</td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression which returns the function of calling the action method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T1</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Web_Api_C1ApiController_Location__1_System_Linq_Expressions_Expression_System_Func_System_Func___0_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object___examples">Examples</h5>
<p>Location&lt;string&gt;(()=&gt;this.Action);</p>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location__2_System_Linq_Expressions_Expression_System_Func_System_Func___0___1_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``2(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,System.Web.Http.IHttpActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">Location&lt;T1, T2&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, IHttpActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location&lt;T1, T2&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, IHttpActionResult&gt;&gt;&gt; expression, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(Of T1, T2)(expression As Expression(Of Func(Of Func(Of T1, T2, IHttpActionResult))), Optional values As IDictionary(Of String, Object) = Nothing) 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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;T1, T2, <span class="xref">IHttpActionResult</span>&gt;&gt;&gt;</td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression which returns the function of calling the action method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T1</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Web_Api_C1ApiController_Location__2_System_Linq_Expressions_Expression_System_Func_System_Func___0___1_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object___examples">Examples</h5>
<p>Location&lt;string, string&gt;(()=&gt;this.Action);</p>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location__3_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``3(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,``2,System.Web.Http.IHttpActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">Location&lt;T1, T2, T3&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, IHttpActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location&lt;T1, T2, T3&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, IHttpActionResult&gt;&gt;&gt; expression, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(Of T1, T2, T3)(expression As Expression(Of Func(Of Func(Of T1, T2, T3, IHttpActionResult))), Optional values As IDictionary(Of String, Object) = Nothing) 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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-4">Func</a>&lt;T1, T2, T3, <span class="xref">IHttpActionResult</span>&gt;&gt;&gt;</td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression which returns the function of calling the action method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T1</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T3</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Web_Api_C1ApiController_Location__3_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object___examples">Examples</h5>
<p>Location&lt;string, string, string&gt;(()=&gt;this.Action);</p>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location__4_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``4(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,``2,``3,System.Web.Http.IHttpActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">Location&lt;T1, T2, T3, T4&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, T4, IHttpActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location&lt;T1, T2, T3, T4&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, T4, IHttpActionResult&gt;&gt;&gt; expression, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(Of T1, T2, T3, T4)(expression As Expression(Of Func(Of Func(Of T1, T2, T3, T4, IHttpActionResult))), Optional values As IDictionary(Of String, Object) = Nothing) 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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-5">Func</a>&lt;T1, T2, T3, T4, <span class="xref">IHttpActionResult</span>&gt;&gt;&gt;</td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression which returns the function of calling the action method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T1</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T3</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T4</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Web_Api_C1ApiController_Location__4_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object___examples">Examples</h5>
<p>Location&lt;string, string, string, string&gt;(()=&gt;this.Action);</p>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location__5_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3___4_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``5(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,``2,``3,``4,System.Web.Http.IHttpActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">Location&lt;T1, T2, T3, T4, T5&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, T4, T5, IHttpActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location&lt;T1, T2, T3, T4, T5&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, T4, T5, IHttpActionResult&gt;&gt;&gt; expression, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(Of T1, T2, T3, T4, T5)(expression As Expression(Of Func(Of Func(Of T1, T2, T3, T4, T5, IHttpActionResult))), Optional values As IDictionary(Of String, Object) = Nothing) 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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-6">Func</a>&lt;T1, T2, T3, T4, T5, <span class="xref">IHttpActionResult</span>&gt;&gt;&gt;</td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression which returns the function of calling the action method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T1</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T3</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T4</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="parametername">T5</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Web_Api_C1ApiController_Location__5_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3___4_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object___examples">Examples</h5>
<p>Location&lt;string, string, string, string, string&gt;(()=&gt;this.Action);</p>



<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location_System_String_System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.String,System.Collections.Generic.IDictionary{System.String,System.Object})">Location(string, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location(string actionName, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(actionName As String, Optional values As IDictionary(Of String, Object) = Nothing) 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">actionName</span></td>
      <td><p>The name of the action.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Api_C1ApiController_Location_" data-uid="C1.Web.Api.C1ApiController.Location*"></a>
<h4 id="C1_Web_Api_C1ApiController_Location_System_Reflection_MethodInfo_System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.Reflection.MethodInfo,System.Collections.Generic.IDictionary{System.String,System.Object})">Location(MethodInfo, IDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string Location(MethodInfo methodInfo, IDictionary&lt;string, object&gt; values = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Location(methodInfo As MethodInfo, Optional values As IDictionary(Of String, Object) = Nothing) 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.reflection.methodinfo">MethodInfo</a></td>
      <td><span class="parametername">methodInfo</span></td>
      <td><p>The method for the action.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The dictionary that contains the parameters for the action.</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>The absolute url for the specified action.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
