共用方式為


IStringLocalizerFactory.Create 方法

定義

多載

Create(Type)

使用所指定 TypeAssemblyFullName,建立 IStringLocalizer

Create(String, String)

建立 IStringLocalizer

Create(Type)

來源:
IStringLocalizerFactory.cs
來源:
IStringLocalizerFactory.cs
來源:
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)

來源:
IStringLocalizerFactory.cs
來源:
IStringLocalizerFactory.cs
來源:
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

適用於