次の方法で共有


RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider メソッド

定義

新しい RequestCultureProviderRequestCultureProviders に追加します。

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

注釈

このメソッドは、 内RequestCultureProvidersrequestCultureProviderRequestCultureProviderのインスタンスよりも優先度が高いことを保証します。

適用対象