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 ]

適用対象