ViewEngineResult Constructors

Definition

Overloads

ViewEngineResult(IEnumerable<String>)

Initializes a new instance of the ViewEngineResult class by using the specified searched locations.

ViewEngineResult(IView, IViewEngine)

Initializes a new instance of the ViewEngineResult class by using the specified view and view engine.

ViewEngineResult(IEnumerable<String>)

Initializes a new instance of the ViewEngineResult class by using the specified searched locations.

public ViewEngineResult (System.Collections.Generic.IEnumerable<string> searchedLocations);
new System.Web.Mvc.ViewEngineResult : seq<string> -> System.Web.Mvc.ViewEngineResult
Public Sub New (searchedLocations As IEnumerable(Of String))

Parameters

searchedLocations
IEnumerable<String>

The searched locations.

Exceptions

The searchedLocations parameter is null.

Applies to

ViewEngineResult(IView, IViewEngine)

Initializes a new instance of the ViewEngineResult class by using the specified view and view engine.

public ViewEngineResult (System.Web.Mvc.IView view, System.Web.Mvc.IViewEngine viewEngine);
new System.Web.Mvc.ViewEngineResult : System.Web.Mvc.IView * System.Web.Mvc.IViewEngine -> System.Web.Mvc.ViewEngineResult
Public Sub New (view As IView, viewEngine As IViewEngine)

Parameters

view
IView

The view.

viewEngine
IViewEngine

The view engine.

Exceptions

The view or viewEngine parameter is null.

Applies to