Share via


LanguageViewLocationExpander 클래스

정의

IViewLocationExpander 이름을 보기 위해 언어를 확장 접두사로 추가하는 입니다. 확장 접두사로 추가되는 언어는 에서 HttpContext제공됩니다.

public ref class LanguageViewLocationExpander : Microsoft::AspNetCore::Mvc::Razor::IViewLocationExpander
public class LanguageViewLocationExpander : Microsoft.AspNetCore.Mvc.Razor.IViewLocationExpander
type LanguageViewLocationExpander = class
    interface IViewLocationExpander
Public Class LanguageViewLocationExpander
Implements IViewLocationExpander
상속
LanguageViewLocationExpander
구현

예제

영역이 없는 기본 사례의 경우 보기는 다음 패턴으로 생성됩니다(컨트롤러가 "홈"이고, 작업이 "인덱스"이고 언어가 "en"). Views/Home/en/Action Views/Home/Action Views/Shared/en/Action Views/Shared/Action

생성자

LanguageViewLocationExpander()

LanguageViewLocationExpander instance 인스턴스화합니다.

LanguageViewLocationExpander(LanguageViewLocationExpanderFormat)

LanguageViewLocationExpander instance 인스턴스화합니다.

메서드

ExpandViewLocations(ViewLocationExpanderContext, IEnumerable<String>)

에 의해 RazorViewEngine 호출되어 보기의 잠재적 위치를 확인합니다.

PopulateValues(ViewLocationExpanderContext)

의 이 instance IViewLocationExpander사용할 값을 결정하기 위해 에 의해 RazorViewEngine 호출됩니다. 계산된 값은 뷰 위치가 마지막으로 찾은 이후 변경되었는지 확인하는 데 사용됩니다.

적용 대상