Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Builder.​RequestLocalizationOptionsExtensions
Assembly: Microsoft.AspNetCore.Localization
Inheritance: object → RequestLocalizationOptionsExtensions
Extension methods for the <see cref="T:Microsoft.AspNetCore.Builder.RequestLocalizationOptions" /> .
Methods
public static
RequestLocalizationOptions
AddInitialRequestCultureProvider​(RequestLocalizationOptions requestLocalizationOptions,
Localization.​RequestCultureProvider requestCultureProvider)
Adds a new <see cref="T:Microsoft.AspNetCore.Localization.RequestCultureProvider" /> to the <see cref="P:Microsoft.AspNetCore.Builder.RequestLocalizationOptions.RequestCultureProviders" /> .
Returns The <see cref="T:Microsoft.AspNetCore.Builder.RequestLocalizationOptions" /> .
requestLocalizationOptions
The cultures to be added.
requestCultureProvider
The cultures to be added.
Remarks
This method ensures that <paramref name="requestCultureProvider" /> has priority over other <see cref="T:Microsoft.AspNetCore.Localization.RequestCultureProvider" /> instances in <see cref="P:Microsoft.AspNetCore.Builder.RequestLocalizationOptions.RequestCultureProviders" /> .
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object