IStringLocalizerFactory.Create Method

Definition

Overloads

Create(Type)

Creates an IStringLocalizer using the Assembly and FullName of the specified Type.

Create(String, String)

Creates an IStringLocalizer.

Create(Type)

Source:
IStringLocalizerFactory.cs
Source:
IStringLocalizerFactory.cs
Source:
IStringLocalizerFactory.cs

Creates an IStringLocalizer using the Assembly and FullName of the specified Type.

public Microsoft.Extensions.Localization.IStringLocalizer Create(Type resourceSource);

Parameters

resourceSource
Type

The Type.

Returns

The IStringLocalizer.

Applies to

.NET 10 (package-provided) and .NET Standard 2.0 (package-provided)
Product Versions
.NET 10 (package-provided)
.NET Standard 2.0 (package-provided)

Create(String, String)

Source:
IStringLocalizerFactory.cs
Source:
IStringLocalizerFactory.cs
Source:
IStringLocalizerFactory.cs

Creates an IStringLocalizer.

public Microsoft.Extensions.Localization.IStringLocalizer Create(string baseName, string location);

Parameters

baseName
String

The base name of the resource to load strings from.

location
String

The location to load resources from.

Returns

The IStringLocalizer.

Applies to

.NET 10 (package-provided) and .NET Standard 2.0 (package-provided)
Product Versions
.NET 10 (package-provided)
.NET Standard 2.0 (package-provided)