Sdílet prostřednictvím


IRequestCultureProvider.DetermineProviderCultureResult(HttpContext) Metoda

Definice

Implementuje zprostředkovatele k určení jazykové verze daného požadavku.

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)

Parametry

httpContext
HttpContext

Položka HttpContext pro daný požadavek.

Návraty

Určená ProviderCultureResulthodnota . Vrátí hodnotunull, pokud zprostředkovatel nemohl určit .ProviderCultureResult

Platí pro