Sdílet prostřednictvím


ViewHierarchyUtility.GetViewStartLocations(String) Metoda

Definice

Získá počáteční umístění zobrazení, které lze použít pro zadanou cestu.

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)

Parametry

applicationRelativePath
String

Relativní cesta aplikace k souboru, pro který se má najít _ViewStarts.

Návraty

Posloupnost cest, které představují potenciální počáteční umístění zobrazení.

Poznámky

Tato metoda vrátí cesty počínaje adresářem applicationRelativePath a posune se nahoru, dokud nenasáhne kořen aplikace. Např. /Views/Home/View.cshtml –> [ /Views/Home/_ViewStart.cshtml, /Views/_ViewStart.cshtml, /_ViewStart.cshtml ]

Platí pro