RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menambahkan baru RequestCultureProvider ke RequestCultureProviders.
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
Parameter
- requestLocalizationOptions
- RequestLocalizationOptions
Budaya yang akan ditambahkan.
- requestCultureProvider
- RequestCultureProvider
Budaya yang akan ditambahkan.
Mengembalikan
Keterangan
Metode ini memastikan bahwa requestCultureProvider
memiliki prioritas atas instans lain RequestCultureProvider di RequestCultureProviders.