CustomRequestCultureProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的委派建立新的 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>>
提供者委派。