Dela via


IRequestCultureProvider.DetermineProviderCultureResult(HttpContext) Method

Definition

Implements the provider to determine the culture of the given request.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Localization::ProviderCultureResult ^> ^ DetermineProviderCultureResult(Microsoft::AspNetCore::Http::HttpContext ^ httpContext);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult> DetermineProviderCultureResult (Microsoft.AspNetCore.Http.HttpContext httpContext);
public 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 Function DetermineProviderCultureResult (httpContext As HttpContext) As Task(Of ProviderCultureResult)

Parameters

httpContext
HttpContext

The HttpContext for the request.

Returns

The determined ProviderCultureResult. Returns null if the provider couldn't determine a ProviderCultureResult.

Applies to