RazorViewEngineOptions.AreaViewLocationFormats 속성

정의

영역 내에서 보기를 검색할 위치를 RazorViewEngine 가져옵니다.

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

속성 값

설명

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

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

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

적용 대상