ViewEngineResult Class

Definition

Represents the result of an IViewEngine.

C#
public class ViewEngineResult
Inheritance
ViewEngineResult

Properties

SearchedLocations

The list of locations searched.

Success

Whether the result was successful

View

The IView.

ViewName

Gets or sets the name of the view.

Methods

EnsureSuccessful(IEnumerable<String>)

Ensure this ViewEngineResult was successful.

Found(String, IView)

Returns a result when a view is found.

NotFound(String, IEnumerable<String>)

Returns a result that represents when a view is not found.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0