IHtmlLocalizer<TResource> Interface

Definition

An IHtmlLocalizer that provides localized HTML content.

generic <typename TResource>
public interface class IHtmlLocalizer : Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizer
public interface IHtmlLocalizer<TResource> : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer
type IHtmlLocalizer<'Resource> = interface
    interface IHtmlLocalizer
Public Interface IHtmlLocalizer(Of TResource)
Implements IHtmlLocalizer

Type Parameters

TResource

The Type to scope the resource names.

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