ResourceManagerStringLocalizerFactory 类

定义

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
继承
ResourceManagerStringLocalizerFactory
实现

注解

ResourceManagerStringLocalizerFactory 提供了多种方式来设置要使用的资源的相对路径。 它们按优先级顺序排列: ResourceLocationAttribute ->ResourcesPath -> 项目根。

构造函数

ResourceManagerStringLocalizerFactory(IHostingEnvironment, IOptions<LocalizationOptions>)

创建一个新的 ResourceManagerStringLocalizer

ResourceManagerStringLocalizerFactory(IOptions<LocalizationOptions>, ILoggerFactory)

创建一个新的 ResourceManagerStringLocalizer

方法

Create(String, String)

创建一个 ResourceManagerStringLocalizer

Create(Type)

使用指定 TypeAssemblyFullName 创建 ResourceManagerStringLocalizer

CreateResourceManagerStringLocalizer(Assembly, String)

为给定输入创建 ResourceManagerStringLocalizer

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetResourceLocationAttribute(Assembly)

从提供的 Assembly 中获取 ResourceLocationAttribute

GetResourcePrefix(String, String)

获取用于查找资源的资源前缀。

GetResourcePrefix(String, String, String)

获取用于查找资源的资源前缀。

GetResourcePrefix(TypeInfo)

获取用于查找资源的资源前缀。

GetResourcePrefix(TypeInfo, String, String)

获取用于查找资源的资源前缀。

GetRootNamespaceAttribute(Assembly)

从提供的 Assembly 中获取 RootNamespaceAttribute

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于