共用方式為


CustomRequestCultureProvider 建構函式

定義

使用指定的委派建立新的 CustomRequestCultureProvider

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)))

參數

provider
Func<HttpContext,Task<ProviderCultureResult>>

提供者委派。

適用於