ResourceManagerWithCultureStringLocalizer Class

Definition

Caution

This method is obsolete. Use CurrentCulture and CurrentUICulture instead.

An IStringLocalizer that uses the ResourceManager and ResourceReader to provide localized strings for a specific CultureInfo.

public ref class ResourceManagerWithCultureStringLocalizer : Microsoft::Extensions::Localization::ResourceManagerStringLocalizer
public class ResourceManagerWithCultureStringLocalizer : Microsoft.Extensions.Localization.ResourceManagerStringLocalizer
[System.Obsolete("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")]
public class ResourceManagerWithCultureStringLocalizer : Microsoft.Extensions.Localization.ResourceManagerStringLocalizer
type ResourceManagerWithCultureStringLocalizer = class
    inherit ResourceManagerStringLocalizer
[<System.Obsolete("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")>]
type ResourceManagerWithCultureStringLocalizer = class
    inherit ResourceManagerStringLocalizer
Public Class ResourceManagerWithCultureStringLocalizer
Inherits ResourceManagerStringLocalizer
Inheritance
ResourceManagerWithCultureStringLocalizer
Attributes

Constructors

ResourceManagerWithCultureStringLocalizer(ResourceManager, Assembly, String, IResourceNamesCache, CultureInfo)

Creates a new ResourceManagerWithCultureStringLocalizer.

ResourceManagerWithCultureStringLocalizer(ResourceManager, Assembly, String, IResourceNamesCache, CultureInfo, ILogger)

Creates a new ResourceManagerWithCultureStringLocalizer.

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.

(Inherited from ResourceManagerStringLocalizer)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetStringSafely(String, CultureInfo)

Gets a resource string from a ResourceManager and returns null instead of throwing exceptions if a match isn't found.

(Inherited from ResourceManagerStringLocalizer)
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.

(Inherited from ResourceManagerStringLocalizer)

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