ViewEngineResult.NotFound(String, IEnumerable<String>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个结果,该结果表示找不到视图时。
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>
搜索的位置。
返回
找不到结果。