共用方式為


ResourceManagerStringLocalizerFactory 類別

定義

public ref class ResourceManagerStringLocalizerFactory : Microsoft::Extensions::Localization::IStringLocalizerFactory
public class ResourceManagerStringLocalizerFactory : Microsoft.Extensions.Localization.IStringLocalizerFactory
type ResourceManagerStringLocalizerFactory = class
    interface IStringLocalizerFactory
Public Class ResourceManagerStringLocalizerFactory
Implements IStringLocalizerFactory
繼承
ResourceManagerStringLocalizerFactory
實作

備註

ResourceManagerStringLocalizerFactory 提供多種方式來設定要使用的資源相對路徑。 其優先順序如下: ResourceLocationAttribute ->ResourcesPath 專案> 根目錄。

建構函式

ResourceManagerStringLocalizerFactory(IOptions<LocalizationOptions>, ILoggerFactory)

建立新的 ResourceManagerStringLocalizer

方法

Create(String, String)

建立 ResourceManagerStringLocalizer

Create(Type)

使用所指定 TypeAssemblyFullName,建立 ResourceManagerStringLocalizer

CreateResourceManagerStringLocalizer(Assembly, String)

建立指定輸入的 ResourceManagerStringLocalizer

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetResourceLocationAttribute(Assembly)

從提供的 Assembly 中取得 ResourceLocationAttribute

GetResourcePrefix(String, String)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(String, String, String)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(TypeInfo)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(TypeInfo, String, String)

取得用來查閱資源的資源前置詞。

GetRootNamespaceAttribute(Assembly)

從提供的 Assembly 中取得 RootNamespaceAttribute

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於