語言

IHtmlLocalizerFactory.Create 方法

定義

多載

名稱 Description
Create(Type)

使用所指定 Type 的 Assembly 和 FullName,建立 IHtmlLocalizer。

Create(String, String)

建立 IHtmlLocalizer。

Create(Type)

來源:
IHtmlLocalizerFactory.cs

使用所指定 Type 的 Assembly 和 FullName,建立 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)

來源:
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。

適用於