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>

搜索的位置。

返回

找不到结果。

适用于