다음을 통해 공유


RequestLocalizationOptionsExtensions.AddInitialRequestCultureProvider 메서드

정의

RequestCultureProvider에 새 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

매개 변수

requestLocalizationOptions
RequestLocalizationOptions

추가할 문화권입니다.

requestCultureProvider
RequestCultureProvider

추가할 문화권입니다.

반환

RequestLocalizationOptions

설명

이 메서드는 의 requestCultureProvider 다른 RequestCultureProvider 인스턴스보다 우선 순위가 있는지 확인합니다 RequestCultureProviders.

적용 대상