ViewEngineResult.NotFound(String, IEnumerable<String>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a result that represents when a view is not found.
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
Parameters
- viewName
- String
The name of the view.
- searchedLocations
- IEnumerable<String>
The locations searched.
Returns
The not found result.