IStringLocalizerFactory.Create 方法

定义

重载

Create(Type)

使用指定 TypeAssemblyFullName 创建 IStringLocalizer

Create(String, String)

创建 IStringLocalizer

Create(Type)

Source:
IStringLocalizerFactory.cs
Source:
IStringLocalizerFactory.cs

使用指定 TypeAssemblyFullName 创建 IStringLocalizer

public:
 Microsoft::Extensions::Localization::IStringLocalizer ^ Create(Type ^ resourceSource);
public Microsoft.Extensions.Localization.IStringLocalizer Create (Type resourceSource);
abstract member Create : Type -> Microsoft.Extensions.Localization.IStringLocalizer
Public Function Create (resourceSource As Type) As IStringLocalizer

参数

resourceSource
Type

Type

返回

IStringLocalizer

适用于

Create(String, String)

Source:
IStringLocalizerFactory.cs
Source:
IStringLocalizerFactory.cs

创建 IStringLocalizer

public:
 Microsoft::Extensions::Localization::IStringLocalizer ^ Create(System::String ^ baseName, System::String ^ location);
public Microsoft.Extensions.Localization.IStringLocalizer Create (string baseName, string location);
abstract member Create : string * string -> Microsoft.Extensions.Localization.IStringLocalizer
Public Function Create (baseName As String, location As String) As IStringLocalizer

参数

baseName
String

要从中加载字符串的资源的基名称。

location
String

要从中加载资源的位置。

返回

IStringLocalizer

适用于