다음을 통해 공유


ViewHierarchyUtility.GetViewStartLocations(String) 메서드

정의

지정된 경로에 적용할 수 있는 보기 시작 위치를 가져옵니다.

public:
 static System::Collections::Generic::IEnumerable<System::String ^> ^ GetViewStartLocations(System::String ^ applicationRelativePath);
public static System.Collections.Generic.IEnumerable<string> GetViewStartLocations (string applicationRelativePath);
static member GetViewStartLocations : string -> seq<string>
Public Shared Function GetViewStartLocations (applicationRelativePath As String) As IEnumerable(Of String)

매개 변수

applicationRelativePath
String

찾을 _ViewStart파일의 애플리케이션 상대 경로입니다.

반환

잠재적인 보기 시작 위치를 나타내는 경로 시퀀스입니다.

설명

이 메서드는 의 applicationRelativePath 디렉터리에서 시작하는 경로를 반환하고 애플리케이션 루트에 도달할 때까지 위쪽으로 이동합니다. 예: /Views/Home/View.cshtml -> [ /Views/Home/_ViewStart.cshtml, /Views/_ViewStart.cshtml, /_ViewStart.cshtml ]

적용 대상