Share via


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.

public:
 virtual Microsoft::Extensions::Localization::LocalizedString ^ GetString(System::String ^ name);
public virtual Microsoft.Extensions.Localization.LocalizedString GetString (string name);
abstract member GetString : string -> Microsoft.Extensions.Localization.LocalizedString
override this.GetString : string -> Microsoft.Extensions.Localization.LocalizedString
Public Overridable Function GetString (name As String) As LocalizedString

Parameters

name
String

The name of the string resource.

Returns

The string resource as a LocalizedString.

Implements

Applies to

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.

public:
 virtual Microsoft::Extensions::Localization::LocalizedString ^ GetString(System::String ^ name, ... cli::array <System::Object ^> ^ arguments);
public virtual Microsoft.Extensions.Localization.LocalizedString GetString (string name, params object[] arguments);
abstract member GetString : string * obj[] -> Microsoft.Extensions.Localization.LocalizedString
override this.GetString : string * obj[] -> Microsoft.Extensions.Localization.LocalizedString
Public Overridable Function GetString (name As String, ParamArray arguments As Object()) As LocalizedString

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