共用方式為


ViewEngineResult.NotFound(String, IEnumerable<String>) 方法

定義

傳回結果,表示找不到檢視時。

public:
 static Microsoft::AspNetCore::Mvc::ViewEngines::ViewEngineResult ^ NotFound(System::String ^ viewName, System::Collections::Generic::IEnumerable<System::String ^> ^ searchedLocations);
public static Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult NotFound (string viewName, System.Collections.Generic.IEnumerable<string> searchedLocations);
static member NotFound : string * seq<string> -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
Public Shared Function NotFound (viewName As String, searchedLocations As IEnumerable(Of String)) As ViewEngineResult

參數

viewName
String

檢視的名稱。

searchedLocations
IEnumerable<String>

搜尋的位置。

傳回

找不到的結果。

適用於