共用方式為


RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider 方法

定義

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ AddInitialRequestCultureProvider(Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ requestLocalizationOptions, Microsoft::AspNetCore::Localization::RequestCultureProvider ^ requestCultureProvider);
public static Microsoft.AspNetCore.Builder.RequestLocalizationOptions AddInitialRequestCultureProvider (this Microsoft.AspNetCore.Builder.RequestLocalizationOptions requestLocalizationOptions, Microsoft.AspNetCore.Localization.RequestCultureProvider requestCultureProvider);
static member AddInitialRequestCultureProvider : Microsoft.AspNetCore.Builder.RequestLocalizationOptions * Microsoft.AspNetCore.Localization.RequestCultureProvider -> Microsoft.AspNetCore.Builder.RequestLocalizationOptions
<Extension()>
Public Function AddInitialRequestCultureProvider (requestLocalizationOptions As RequestLocalizationOptions, requestCultureProvider As RequestCultureProvider) As RequestLocalizationOptions

參數

requestLocalizationOptions
RequestLocalizationOptions

要加入的文化特性。

requestCultureProvider
RequestCultureProvider

要加入的文化特性。

傳回

RequestLocalizationOptions

備註

這個方法可確保 requestCultureProvider 中其他 RequestCultureProvider 實例 RequestCultureProviders 的優先順序高於 。

適用於