Sdílet prostřednictvím


ViewHierarchyUtility.GetViewImportsLocations(String) Metoda

Definice

Získá umístění pro _ViewImportss, které jsou použitelné pro zadanou cestu.

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

Parametry

applicationRelativePath
String

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

Návraty

Posloupnost cest, které představují potenciální _ViewImports umístění.

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/_ViewImports.cshtml, /Views/_ViewImports.cshtml, /_ViewImports.cshtml ]

Platí pro