ViewLocalizer.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:
ViewLocalizer.cs
Source:
ViewLocalizer.cs

Gets the string resource with the given name.

public:
 virtual Microsoft::Extensions::Localization::LocalizedString ^ GetString(System::String ^ name);
public Microsoft.Extensions.Localization.LocalizedString GetString (string name);
abstract member GetString : string -> Microsoft.Extensions.Localization.LocalizedString
override this.GetString : string -> Microsoft.Extensions.Localization.LocalizedString
Public 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:
ViewLocalizer.cs
Source:
ViewLocalizer.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 ^> ^ values);
public Microsoft.Extensions.Localization.LocalizedString GetString (string name, params object[] values);
abstract member GetString : string * obj[] -> Microsoft.Extensions.Localization.LocalizedString
override this.GetString : string * obj[] -> Microsoft.Extensions.Localization.LocalizedString
Public Function GetString (name As String, ParamArray values As Object()) As LocalizedString

Parameters

name
String

The name of the string resource.

values
Object[]

Returns

The formatted string resource as a LocalizedString.

Implements

Applies to