IHtmlLocalizerFactory.Create 方法

定义

重载

Create(Type)

使用指定 TypeAssemblyFullName 创建 IHtmlLocalizer

Create(String, String)

创建 IHtmlLocalizer

Create(Type)

Source:
IHtmlLocalizerFactory.cs

使用指定 TypeAssemblyFullName 创建 IHtmlLocalizer

public:
 Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizer ^ Create(Type ^ resourceSource);
public Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer Create (Type resourceSource);
abstract member Create : Type -> Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer
Public Function Create (resourceSource As Type) As IHtmlLocalizer

参数

resourceSource
Type

Type

返回

IHtmlLocalizer

适用于

Create(String, String)

Source:
IHtmlLocalizerFactory.cs

创建 IHtmlLocalizer

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

参数

baseName
String

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

location
String

要从中加载资源的位置。

返回

IHtmlLocalizer

适用于