ResourceManagerStringLocalizer 构造函数

定义

创建一个新的 ResourceManagerStringLocalizer

public:
 ResourceManagerStringLocalizer(System::Resources::ResourceManager ^ resourceManager, System::Reflection::Assembly ^ resourceAssembly, System::String ^ baseName, Microsoft::Extensions::Localization::IResourceNamesCache ^ resourceNamesCache, Microsoft::Extensions::Logging::ILogger ^ logger);
public ResourceManagerStringLocalizer (System.Resources.ResourceManager resourceManager, System.Reflection.Assembly resourceAssembly, string baseName, Microsoft.Extensions.Localization.IResourceNamesCache resourceNamesCache, Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.Extensions.Localization.ResourceManagerStringLocalizer : System.Resources.ResourceManager * System.Reflection.Assembly * string * Microsoft.Extensions.Localization.IResourceNamesCache * Microsoft.Extensions.Logging.ILogger -> Microsoft.Extensions.Localization.ResourceManagerStringLocalizer
Public Sub New (resourceManager As ResourceManager, resourceAssembly As Assembly, baseName As String, resourceNamesCache As IResourceNamesCache, logger As ILogger)

参数

resourceManager
ResourceManager

要从中读取字符串的 ResourceManager

resourceAssembly
Assembly

将字符串作为嵌入资源包含在内的 Assembly

baseName
String

包含字符串的嵌入资源的基名称。

resourceNamesCache
IResourceNamesCache

给定资源程序集名称字符串列表的缓存。

logger
ILogger

ILogger

适用于