RequestCultureProvider.DetermineProviderCultureResult(HttpContext) 方法

定义

实现提供程序以确定给定请求的区域性。

public:
 abstract System::Threading::Tasks::Task<Microsoft::AspNetCore::Localization::ProviderCultureResult ^> ^ DetermineProviderCultureResult(Microsoft::AspNetCore::Http::HttpContext ^ httpContext);
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult> DetermineProviderCultureResult (Microsoft.AspNetCore.Http.HttpContext httpContext);
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult?> DetermineProviderCultureResult (Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member DetermineProviderCultureResult : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult>
Public MustOverride Function DetermineProviderCultureResult (httpContext As HttpContext) As Task(Of ProviderCultureResult)

参数

httpContext
HttpContext

该请求的 HttpContext

返回

确定 ProviderCultureResult的 。 null如果提供程序无法确定 ,则ProviderCultureResult返回 。

实现

适用于