ResourceManagerStringLocalizer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IStringLocalizer that uses the ResourceManager and ResourceReader to provide localized strings.
public ref class ResourceManagerStringLocalizer : Microsoft::Extensions::Localization::IStringLocalizer
public class ResourceManagerStringLocalizer : Microsoft.Extensions.Localization.IStringLocalizer
type ResourceManagerStringLocalizer = class
interface IStringLocalizer
Public Class ResourceManagerStringLocalizer
Implements IStringLocalizer
- Inheritance
-
ResourceManagerStringLocalizer
- Derived
- Implements
Remarks
This type is thread-safe.
Constructors
ResourceManagerStringLocalizer(ResourceManager, Assembly, String, IResourceNamesCache) |
Creates a new ResourceManagerStringLocalizer. |
ResourceManagerStringLocalizer(ResourceManager, Assembly, String, IResourceNamesCache, ILogger) |
Creates a new ResourceManagerStringLocalizer. |
ResourceManagerStringLocalizer(ResourceManager, AssemblyWrapper, String, IResourceNamesCache) |
Intended for testing purposes only. |
ResourceManagerStringLocalizer(ResourceManager, AssemblyWrapper, String, IResourceNamesCache, ILogger) |
Intended for testing purposes only. |
ResourceManagerStringLocalizer(ResourceManager, IResourceStringProvider, String, IResourceNamesCache) |
Intended for testing purposes only. |
ResourceManagerStringLocalizer(ResourceManager, IResourceStringProvider, String, IResourceNamesCache, ILogger) |
Intended for testing purposes only. |
Properties
Item[String, Object[]] |
Gets the string resource with the given name and formatted with the supplied arguments. |
Item[String] |
Gets the string resource with the given name. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetAllStrings(Boolean) |
Gets all the resource strings. |
GetAllStrings(Boolean, CultureInfo) |
Returns all strings in the specified culture. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetStringSafely(String, CultureInfo) |
Gets a resource string from a ResourceManager and returns |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
WithCulture(CultureInfo) |
Obsolete.
Creates a new ResourceManagerStringLocalizer for a specific CultureInfo. |
Extension Methods
GetAllStrings(IStringLocalizer) |
Gets all string resources including those for parent cultures. |
GetString(IStringLocalizer, String) |
Gets the string resource with the given name. |
GetString(IStringLocalizer, String, Object[]) |
Gets the string resource with the given name and formatted with the supplied arguments. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應