RazorViewEngineOptions.ViewLocationFormats 속성

정의

뷰를 검색할 위치를 RazorViewEngine 가져옵니다.

public:
 property System::Collections::Generic::IList<System::String ^> ^ ViewLocationFormats { System::Collections::Generic::IList<System::String ^> ^ get(); };
public System.Collections.Generic.IList<string> ViewLocationFormats { get; }
member this.ViewLocationFormats : System.Collections.Generic.IList<string>
Public ReadOnly Property ViewLocationFormats As IList(Of String)

속성 값

설명

영역에 속하지 않는 컨트롤러에서 반환된 뷰의 위치입니다. 위치는 다음 형식 항목을 포함할 수 있는 형식 문자열(참조 https://msdn.microsoft.com/en-us/library/txafckwd.aspx)입니다.

  • {0} - 작업 이름
  • {1} - 컨트롤러 이름

이러한 위치의 값은 대/소문자를 구분하는 파일 시스템에서 대/소문자를 구분합니다. 예를 들어 동작에 대한 뷰는 TestHomeController/Views/Home/Test.cshtml있어야 합니다. 와 같은 /views/home/test.cshtml 위치는 검색되지 않습니다.

적용 대상