IHtmlLocalizer.GetString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
- IHtmlLocalizer.cs
Gets the string resource with the given name.
public:
Microsoft::Extensions::Localization::LocalizedString ^ GetString(System::String ^ name);
public Microsoft.Extensions.Localization.LocalizedString GetString (string name);
abstract member 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.
Applies to
GetString(String, Object[])
- Source:
- IHtmlLocalizer.cs
Gets the string resource with the given name and formatted with the supplied arguments.
public:
Microsoft::Extensions::Localization::LocalizedString ^ GetString(System::String ^ name, ... cli::array <System::Object ^> ^ arguments);
public Microsoft.Extensions.Localization.LocalizedString GetString (string name, params object[] arguments);
abstract member GetString : string * obj[] -> Microsoft.Extensions.Localization.LocalizedString
Public 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.