# GrapeCity.ActiveReports.DefaultResourceLocator.GetResource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_DefaultResourceLocator_GetResource_" data-uid="GrapeCity.ActiveReports.DefaultResourceLocator.GetResource*">GetResource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_DefaultResourceLocator_GetResource_" data-uid="GrapeCity.ActiveReports.DefaultResourceLocator.GetResource*"></a>
<h4 id="GrapeCity_ActiveReports_DefaultResourceLocator_GetResource_GrapeCity_ActiveReports_ResourceInfo_System_IServiceProvider_" data-uid="GrapeCity.ActiveReports.DefaultResourceLocator.GetResource(GrapeCity.ActiveReports.ResourceInfo,System.IServiceProvider)">GetResource(ResourceInfo, IServiceProvider)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.ActiveReports.Resource.html">Resource</a> using a specified <a class="xref" href="GrapeCity.ActiveReports.ResourceInfo.html">ResourceInfo</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iserviceprovider">IServiceProvider</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override Resource GetResource(ResourceInfo resourceInfo, IServiceProvider serviceProvider)</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="GrapeCity.ActiveReports.ResourceInfo.html">ResourceInfo</a></td>
      <td><span class="parametername">resourceInfo</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.ResourceInfo.html">ResourceInfo</a> object containing information about the resource to be located.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iserviceprovider">IServiceProvider</a></td>
      <td><span class="parametername">serviceProvider</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iserviceprovider">IServiceProvider</a> object to use to get the resource.</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="GrapeCity.ActiveReports.Resource.html">Resource</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Resource.html">Resource</a> object that contains the located resource.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.ActiveReports.ResourceLocator.GetResource.html#GrapeCity_ActiveReports_ResourceLocator_GetResource_GrapeCity_ActiveReports_ResourceInfo_System_IServiceProvider_">ResourceLocator.GetResource(ResourceInfo, IServiceProvider)</a></div>


<a id="GrapeCity_ActiveReports_DefaultResourceLocator_GetResource_" data-uid="GrapeCity.ActiveReports.DefaultResourceLocator.GetResource*"></a>
<h4 id="GrapeCity_ActiveReports_DefaultResourceLocator_GetResource_GrapeCity_ActiveReports_ResourceInfo_" data-uid="GrapeCity.ActiveReports.DefaultResourceLocator.GetResource(GrapeCity.ActiveReports.ResourceInfo)">GetResource(ResourceInfo)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.ActiveReports.Resource.html">Resource</a> using a specified <a class="xref" href="GrapeCity.ActiveReports.ResourceInfo.html">ResourceInfo</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override Resource GetResource(ResourceInfo resourceInfo)</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="GrapeCity.ActiveReports.ResourceInfo.html">ResourceInfo</a></td>
      <td><span class="parametername">resourceInfo</span></td>
      <td><p>The <a class="xref" href="GrapeCity.ActiveReports.ResourceInfo.html">ResourceInfo</a> object containing information about the resource to be located.</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="GrapeCity.ActiveReports.Resource.html">Resource</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Resource.html">Resource</a> object that contains the located resource.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.ActiveReports.ResourceLocator.GetResource.html#GrapeCity_ActiveReports_ResourceLocator_GetResource_GrapeCity_ActiveReports_ResourceInfo_">ResourceLocator.GetResource(ResourceInfo)</a></div>
</div>
