Del via


ResourceManagerStringLocalizerFactory Class

Definition

public ref class ResourceManagerStringLocalizerFactory : Microsoft::Extensions::Localization::IStringLocalizerFactory
public class ResourceManagerStringLocalizerFactory : Microsoft.Extensions.Localization.IStringLocalizerFactory
type ResourceManagerStringLocalizerFactory = class
    interface IStringLocalizerFactory
Public Class ResourceManagerStringLocalizerFactory
Implements IStringLocalizerFactory
Inheritance
ResourceManagerStringLocalizerFactory
Implements

Remarks

ResourceManagerStringLocalizerFactory offers multiple ways to set the relative path of resources to be used. They are, in order of precedence: ResourceLocationAttribute -> ResourcesPath -> the project root.

Constructors

ResourceManagerStringLocalizerFactory(IOptions<LocalizationOptions>, ILoggerFactory)

Creates a new ResourceManagerStringLocalizer.

Methods

Create(String, String)

Creates a ResourceManagerStringLocalizer.

Create(Type)

Creates a ResourceManagerStringLocalizer using the Assembly and FullName of the specified Type.

CreateResourceManagerStringLocalizer(Assembly, String)

Creates a ResourceManagerStringLocalizer for the given input.

GetResourceLocationAttribute(Assembly)

Gets a ResourceLocationAttribute from the provided Assembly.

GetResourcePrefix(String, String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(TypeInfo, String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(TypeInfo)

Gets the resource prefix used to look up the resource.

GetRootNamespaceAttribute(Assembly)

Gets a RootNamespaceAttribute from the provided Assembly.

Applies to