共用方式為


StringLocalizer<TResourceSource> Class

Definition

Provides strings for TResourceSource.

generic <typename TResourceSource>
public ref class StringLocalizer : Microsoft::Extensions::Localization::IStringLocalizer<TResourceSource>
public class StringLocalizer<TResourceSource> : Microsoft.Extensions.Localization.IStringLocalizer<TResourceSource>
type StringLocalizer<'ResourceSource> = class
    interface IStringLocalizer<'ResourceSource>
    interface IStringLocalizer
Public Class StringLocalizer(Of TResourceSource)
Implements IStringLocalizer(Of TResourceSource)

Type Parameters

TResourceSource

The Type to provide strings for.

Inheritance
StringLocalizer<TResourceSource>
Implements

Constructors

StringLocalizer<TResourceSource>(IStringLocalizerFactory)

Creates a new StringLocalizer<TResourceSource>.

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.

GetHashCode()

Serves as the default hash function.

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

Extension Methods

GetAllStrings(IStringLocalizer)

Gets all string resources including those for parent cultures.

GetString(IStringLocalizer, String, Object[])

Gets the string resource with the given name and formatted with the supplied arguments.

GetString(IStringLocalizer, String)

Gets the string resource with the given name.

Applies to