RazorViewEngineOptions.ViewLocationFormats プロパティ

定義

ビューを検索する場所 RazorViewEngine を取得します。

public:
 property System::Collections::Generic::IList<System::String ^> ^ ViewLocationFormats { System::Collections::Generic::IList<System::String ^> ^ get(); };
public System.Collections.Generic.IList<string> ViewLocationFormats { get; }
member this.ViewLocationFormats : System.Collections.Generic.IList<string>
Public ReadOnly Property ViewLocationFormats As IList(Of String)

プロパティ値

注釈

エリアに属していないコントローラーから返されるビューの場所。 場所は、次の書式指定項目を含む書式指定文字列 (を参照 https://msdn.microsoft.com/en-us/library/txafckwd.aspx) です。

  • {0} - アクション名
  • {1} - コントローラー名

これらの場所の値は、大文字と小文字を区別するファイル システムでは大文字と小文字が区別されます。 たとえば、 のアクションHomeControllerのビューは Test/Views/Home/Test.cshtml配置する必要があります。 などの /views/home/test.cshtml 場所は検出されません。

適用対象