ViewHierarchyUtility.GetViewStartLocations(String) Metoda

Definice

Získá počáteční umístění zobrazení, která se vztahují na 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 k souboru, pro který se má najít _ViewStarts.

Návraty

IEnumerable<String>

Posloupnost cest, která představuje možná počáteční umístění zobrazení.

Poznámky

Tato metoda vrátí cesty začínající z adresáře applicationRelativePath a přesune nahoru, dokud nedosáhne kořenu aplikace. například/Views/Home/View.cshtml- > [/Views/Home/_ViewStart. cshtml,/Views/_ViewStart. cshtml,/_ViewStart. cshtml]

Platí pro