RouteDataRequestCultureProvider.DetermineProviderCultureResult 方法

定义

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

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

参数

httpContext
HttpContext

该请求的 HttpContext

返回

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

适用于