AcceptLanguageHeaderRequestCultureProvider 类

定义

通过 Accept-Language 标头的值确定请求的区域性信息。

public ref class AcceptLanguageHeaderRequestCultureProvider : Microsoft::AspNetCore::Localization::RequestCultureProvider
public class AcceptLanguageHeaderRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider
type AcceptLanguageHeaderRequestCultureProvider = class
    inherit RequestCultureProvider
Public Class AcceptLanguageHeaderRequestCultureProvider
Inherits RequestCultureProvider
继承
AcceptLanguageHeaderRequestCultureProvider

构造函数

AcceptLanguageHeaderRequestCultureProvider()

属性

MaximumAcceptLanguageHeaderValuesToTry

Accept-Language 标头中要为当前请求创建的值的最大数目 CultureInfo 。 默认值为 3

Options

的当前选项 RequestLocalizationMiddleware

(继承自 RequestCultureProvider)

方法

DetermineProviderCultureResult(HttpContext)

适用于