RequestCulture Class¶
Details about the culture for an Microsoft.AspNetCore.Http.HttpRequest.
- Namespace
Microsoft.AspNetCore.Localization- Assemblies
- Microsoft.AspNetCore.Localization
Constructors¶
-
RequestCulture(System.Globalization.CultureInfo)¶ Creates a new
Microsoft.AspNetCore.Localization.RequestCultureobject has itsMicrosoft.AspNetCore.Localization.RequestCulture.CultureandMicrosoft.AspNetCore.Localization.RequestCulture.UICultureproperties set to the sameSystem.Globalization.CultureInfovalue.Arguments: culture (System.Globalization.CultureInfo) – The System.Globalization.CultureInfofor the request.public RequestCulture(CultureInfo culture)
-
RequestCulture(System.Globalization.CultureInfo, System.Globalization.CultureInfo) Creates a new
Microsoft.AspNetCore.Localization.RequestCultureobject has itsMicrosoft.AspNetCore.Localization.RequestCulture.CultureandMicrosoft.AspNetCore.Localization.RequestCulture.UICultureproperties set to the respectiveSystem.Globalization.CultureInfovalues provided.Arguments: - culture (System.Globalization.CultureInfo) – The
System.Globalization.CultureInfofor the request to be used for formatting. - uiCulture (System.Globalization.CultureInfo) – The
System.Globalization.CultureInfofor the request to be used for text, i.e. language.
public RequestCulture(CultureInfo culture, CultureInfo uiCulture)
- culture (System.Globalization.CultureInfo) – The
-
RequestCulture(System.String) Creates a new
Microsoft.AspNetCore.Localization.RequestCultureobject has itsMicrosoft.AspNetCore.Localization.RequestCulture.CultureandMicrosoft.AspNetCore.Localization.RequestCulture.UICultureproperties set to the sameSystem.Globalization.CultureInfovalue.Arguments: culture (System.String) – The culture for the request. public RequestCulture(string culture)
-
RequestCulture(System.String, System.String) Creates a new
Microsoft.AspNetCore.Localization.RequestCultureobject has itsMicrosoft.AspNetCore.Localization.RequestCulture.CultureandMicrosoft.AspNetCore.Localization.RequestCulture.UICultureproperties set to the respectiveSystem.Globalization.CultureInfovalues provided.Arguments: - culture (System.String) – The culture for the request to be used for formatting.
- uiCulture (System.String) – The culture for the request to be used for text, i.e. language.
public RequestCulture(string culture, string uiCulture)
-
Properties¶
-
Microsoft.AspNetCore.Localization.RequestCulture.Culture¶ Gets the
System.Globalization.CultureInfofor the request to be used for formatting.Return type: System.Globalization.CultureInfo public CultureInfo Culture { get; }
-
Microsoft.AspNetCore.Localization.RequestCulture.UICulture¶ Gets the
System.Globalization.CultureInfofor the request to be used for text, i.e. language;Return type: System.Globalization.CultureInfo public CultureInfo UICulture { get; }
-