共用方式為


ResourceManagerStringLocalizerFactory.CreateResourceManagerStringLocalizer 方法

定義

建立指定輸入的 ResourceManagerStringLocalizer

protected:
 virtual Microsoft::Extensions::Localization::ResourceManagerStringLocalizer ^ CreateResourceManagerStringLocalizer(System::Reflection::Assembly ^ assembly, System::String ^ baseName);
protected virtual Microsoft.Extensions.Localization.ResourceManagerStringLocalizer CreateResourceManagerStringLocalizer (System.Reflection.Assembly assembly, string baseName);
abstract member CreateResourceManagerStringLocalizer : System.Reflection.Assembly * string -> Microsoft.Extensions.Localization.ResourceManagerStringLocalizer
override this.CreateResourceManagerStringLocalizer : System.Reflection.Assembly * string -> Microsoft.Extensions.Localization.ResourceManagerStringLocalizer
Protected Overridable Function CreateResourceManagerStringLocalizer (assembly As Assembly, baseName As String) As ResourceManagerStringLocalizer

參數

assembly
Assembly

要為其建立 ResourceManagerStringLocalizer 的組件。

baseName
String

要搜尋的資源基底名稱。

傳回

所指定 assemblybaseNameResourceManagerStringLocalizer

備註

此方法僅供測試之用。

適用於