Udostępnij za pośrednictwem


RequestCultureProvider.DetermineProviderCultureResult(HttpContext) Metoda

Definicja

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

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)

Parametry

httpContext
HttpContext

Element HttpContext dla żądania.

Zwraca

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

Implementuje

Dotyczy