HtmlLocalizer<TResource>.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:
- HtmlLocalizerOfT.cs
- Source:
- HtmlLocalizerOfT.cs
- Source:
- HtmlLocalizerOfT.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:
- HtmlLocalizerOfT.cs
- Source:
- HtmlLocalizerOfT.cs
- Source:
- HtmlLocalizerOfT.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.