Dela via


ViewEngineResult.NotFound(String, IEnumerable<String>) Method

Definition

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.

Applies to