HtmlLocalizer.GetString Method

Definition

Overloads

GetString(String)

Gets the string resource with the given name.

GetString(String, Object[])

Gets the string resource with the given name and formatted with the supplied arguments.

GetString(String)

Source:
HtmlLocalizer.cs
Source:
HtmlLocalizer.cs
Source:
HtmlLocalizer.cs

Gets the string resource with the given name.

C#
public virtual Microsoft.Extensions.Localization.LocalizedString GetString (string name);

Parameters

name
String

The name of the string resource.

Returns

The string resource as a LocalizedString.

Implements

Applies to

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

GetString(String, Object[])

Source:
HtmlLocalizer.cs
Source:
HtmlLocalizer.cs
Source:
HtmlLocalizer.cs

Gets the string resource with the given name and formatted with the supplied arguments.

C#
public virtual Microsoft.Extensions.Localization.LocalizedString GetString (string name, params object[] arguments);

Parameters

name
String

The name of the string resource.

arguments
Object[]

The values to format the string with.

Returns

The formatted string resource as a LocalizedString.

Implements

Applies to

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0