Udostępnij za pośrednictwem


IRequestCultureProvider.DetermineProviderCultureResult(HttpContext) Metoda

Definicja

Implementuje dostawcę w celu określenia kultury danego żądania.

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

Element HttpContext dla żądania.

Zwraca

Określony ProviderCultureResultelement . Zwraca wartość null , jeśli dostawca nie może określić elementu ProviderCultureResult.

Dotyczy