ViewHierarchyUtility.GetViewImportsLocations(String) Metoda

Definice

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

Návraty

IEnumerable<String>

Posloupnost cest, které reprezentují potenciální _ViewImports umístění.

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

Platí pro