Share via


IHtmlLocalizer Interface

Definition

Represents a type that does HTML-aware localization of strings, by HTML encoding arguments that are formatted in the resource string.

public interface class IHtmlLocalizer
public interface IHtmlLocalizer
type IHtmlLocalizer = interface
Public Interface IHtmlLocalizer
Derived

Properties

Item[String, Object[]]

Gets the string resource with the given name and formatted with the supplied arguments. The arguments will be HTML encoded.

Item[String]

Gets the string resource with the given name.

Methods

GetAllStrings(Boolean)

Gets all string resources.

GetString(String, Object[])

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

GetString(String)

Gets the string resource with the given name.

WithCulture(CultureInfo)
Obsolete.

Creates a new IHtmlLocalizer for a specific CultureInfo.

Extension Methods

GetAllStrings(IHtmlLocalizer)

Gets all string resources including those for parent cultures.

GetHtml(IHtmlLocalizer, String, Object[])

Gets the LocalizedHtmlString resource for a specific name.

GetHtml(IHtmlLocalizer, String)

Gets the LocalizedHtmlString resource for a specific name.

Applies to