Share via


IViewLocalizer Interface

Definition

Represents a type that provides HTML-aware localization for views.

public interface class IViewLocalizer : Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizer
public interface IViewLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer
type IViewLocalizer = interface
    interface IHtmlLocalizer
Public Interface IViewLocalizer
Implements IHtmlLocalizer
Derived
Implements

Properties

Item[String, Object[]]

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

(Inherited from IHtmlLocalizer)
Item[String]

Gets the string resource with the given name.

(Inherited from IHtmlLocalizer)

Methods

GetAllStrings(Boolean)

Gets all string resources.

(Inherited from IHtmlLocalizer)
GetString(String, Object[])

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

(Inherited from IHtmlLocalizer)
GetString(String)

Gets the string resource with the given name.

(Inherited from IHtmlLocalizer)
WithCulture(CultureInfo)
Obsolete.

Creates a new IHtmlLocalizer for a specific CultureInfo.

(Inherited from IHtmlLocalizer)

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