# C1.Framework.SR-1.GetString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_SR_1_GetString_" data-uid="C1.Framework.SR`1.GetString*">GetString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_SR_1_GetString_" data-uid="C1.Framework.SR`1.GetString*"></a>
<h4 id="C1_Framework_SR_1_GetString_System_String_" data-uid="C1.Framework.SR`1.GetString(System.String)">GetString(string)</h4>
<div class="markdown level1 summary"><p>Returns the value of the resource with the specified name in the assembly indicated by the template type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string GetString(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetString(name As String) 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">name</span></td>
      <td><p>Name of the resource to get.</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 value of a resource.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_SR_1_GetString_" data-uid="C1.Framework.SR`1.GetString*"></a>
<h4 id="C1_Framework_SR_1_GetString_System_String_System_Object___" data-uid="C1.Framework.SR`1.GetString(System.String,System.Object[])">GetString(string, params object[])</h4>
<div class="markdown level1 summary"><p>Returns the value of the resource with the specified name in the assembly indicated by the template type
and returns the formated string that replaced the format specification in the String
with the textual equivalent of the value of a corresponding Object instance in a specified array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string GetString(string name, params object[] args)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetString(name As String, ParamArray args As Object()) 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">name</span></td>
      <td><p>Name of the resource to get.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</td>
      <td><span class="parametername">args</span></td>
      <td><p>An Object array containing zero or more objects to be formatted.</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 formated value of a resource.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_SR_1_GetString_" data-uid="C1.Framework.SR`1.GetString*"></a>
<h4 id="C1_Framework_SR_1_GetString_System_Globalization_CultureInfo_System_String_" data-uid="C1.Framework.SR`1.GetString(System.Globalization.CultureInfo,System.String)">GetString(CultureInfo, string)</h4>
<div class="markdown level1 summary"><p>Returns the value of the resource localized for the specified culture with the specified name in the assembly
indicated by the template type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string GetString(CultureInfo culture, string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetString(culture As CultureInfo, name As String) 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.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">culture</span></td>
      <td><p>The CultureInfo object that represents the culture for which the resource is localized.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Name of the resource to get.</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 value of a resource.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_SR_1_GetString_" data-uid="C1.Framework.SR`1.GetString*"></a>
<h4 id="C1_Framework_SR_1_GetString_System_Globalization_CultureInfo_System_String_System_Object___" data-uid="C1.Framework.SR`1.GetString(System.Globalization.CultureInfo,System.String,System.Object[])">GetString(CultureInfo, string, params object[])</h4>
<div class="markdown level1 summary"><p>Returns the value of the resource localized for the specified culture with the specified name in the assembly
indicated by the template type and returns the formated string that replaced the format specification in the
String with the textual equivalent of the value of a corresponding Object instance in a specified array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string GetString(CultureInfo culture, string name, params object[] args)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetString(culture As CultureInfo, name As String, ParamArray args As Object()) 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.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">culture</span></td>
      <td><p>The CultureInfo object that represents the culture for which the resource is localized.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Name of the resource to get.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</td>
      <td><span class="parametername">args</span></td>
      <td><p>An Object array containing zero or more objects to be formatted.</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 formated value of a resource.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
