GenericLocalizeTagHelper.

Type Property

Summary

Gets or sets the type to use when looking up the resource file.

Syntax

[HtmlAttributeName(LOCALIZE_TYPE)]
public virtual Type Type { get; set; }

Examples

<span localize-type="typeof(Localization.Demo.Models.SharedType)">
  The text
</span>
Creates a new html localizer passing the specified type.

Attributes

Type Description
HtmlAttributeName

Value

Type Description
Type The type to use when looking up the resource file.