Zdieľať cez


ResourceManagerStringLocalizerFactory Class

Definition

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
Inheritance
ResourceManagerStringLocalizerFactory
Implements

Remarks

ResourceManagerStringLocalizerFactory offers multiple ways to set the relative path of resources to be used. They are, in order of precedence: ResourceLocationAttribute -> ResourcesPath -> the project root.

Constructors

ResourceManagerStringLocalizerFactory(IOptions<LocalizationOptions>, ILoggerFactory)

Creates a new ResourceManagerStringLocalizer.

Methods

Create(String, String)

Creates a ResourceManagerStringLocalizer.

Create(Type)

Creates a ResourceManagerStringLocalizer using the Assembly and FullName of the specified Type.

CreateResourceManagerStringLocalizer(Assembly, String)

Creates a ResourceManagerStringLocalizer for the given input.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetResourceLocationAttribute(Assembly)

Gets a ResourceLocationAttribute from the provided Assembly.

GetResourcePrefix(String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(String, String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(TypeInfo)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(TypeInfo, String, String)

Gets the resource prefix used to look up the resource.

GetRootNamespaceAttribute(Assembly)

Gets a RootNamespaceAttribute from the provided Assembly.

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)

Applies to