# C1.Web.Api.C1ApiController.CreatedAtRoute

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Api_C1ApiController_CreatedAtRoute_" data-uid="C1.Web.Api.C1ApiController.CreatedAtRoute*">CreatedAtRoute Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Api_C1ApiController_CreatedAtRoute_" data-uid="C1.Web.Api.C1ApiController.CreatedAtRoute*"></a>
<h4 id="C1_Web_Api_C1ApiController_CreatedAtRoute__1_System_String_System_Collections_Generic_IDictionary_System_String_System_Object____0_" data-uid="C1.Web.Api.C1ApiController.CreatedAtRoute``1(System.String,System.Collections.Generic.IDictionary{System.String,System.Object},``0)">CreatedAtRoute&lt;T&gt;(string, IDictionary&lt;string, object&gt;, T)</h4>
<div class="markdown level1 summary"><p>Creates a System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult`1 (201 Created) with the specified values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override CreatedAtRouteNegotiatedContentResult&lt;T&gt; CreatedAtRoute&lt;T&gt;(string routeName, IDictionary&lt;string, object&gt; routeValues, T content)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function CreatedAtRoute(Of T)(routeName As String, routeValues As IDictionary(Of String, Object), content As T) As CreatedAtRouteNegotiatedContentResult(Of T)</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">routeName</span></td>
      <td><p>The name of the route to use for generating the URL.</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">routeValues</span></td>
      <td><p>The route data to use for generating the URL.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">T</span></td>
      <td><span class="parametername">content</span></td>
      <td><p>The content value to negotiate and format in the entity body.</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><span class="xref">CreatedAtRouteNegotiatedContentResult</span>&lt;T&gt;</td>
      <td><p>A System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult`1 with the specified values.</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">T</span></td>
      <td><p>The type of content in the entity body.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
