Partager via


CustomRequestCultureProvider Constructeur

Définition

Crée un nouveau CustomRequestCultureProvider à l’aide du délégué spécifié.

public:
 CustomRequestCultureProvider(Func<Microsoft::AspNetCore::Http::HttpContext ^, System::Threading::Tasks::Task<Microsoft::AspNetCore::Localization::ProviderCultureResult ^> ^> ^ provider);
public CustomRequestCultureProvider (Func<Microsoft.AspNetCore.Http.HttpContext,System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult>> provider);
public CustomRequestCultureProvider (Func<Microsoft.AspNetCore.Http.HttpContext,System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult?>> provider);
new Microsoft.AspNetCore.Localization.CustomRequestCultureProvider : Func<Microsoft.AspNetCore.Http.HttpContext, System.Threading.Tasks.Task<Microsoft.AspNetCore.Localization.ProviderCultureResult>> -> Microsoft.AspNetCore.Localization.CustomRequestCultureProvider
Public Sub New (provider As Func(Of HttpContext, Task(Of ProviderCultureResult)))

Paramètres

provider
Func<HttpContext,Task<ProviderCultureResult>>

Délégué du fournisseur.

S’applique à