ViewEngineResult Constructor

 

Initializes a new instance of the ViewEngineResult class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodViewEngineResult(IEnumerable<String>)

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

System_CAPS_pubmethodViewEngineResult(IView, IViewEngine)

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

Return to top

ViewEngineResult Constructor (IEnumerable<String>)

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

public ViewEngineResult(
	IEnumerable<string> searchedLocations
)

Parameters

searchedLocations
Type: System.Collections.Generic.IEnumerable<String>

The searched locations.

Exception Condition
ArgumentNullException

The searchedLocations parameter is null.

Return to top

ViewEngineResult Constructor (IView, IViewEngine)

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

public ViewEngineResult(
	IView view,
	IViewEngine viewEngine
)

Parameters

view
Type: System.Web.Mvc.IView

The view.

viewEngine
Type: System.Web.Mvc.IViewEngine

The view engine.

Exception Condition
ArgumentNullException

The view or viewEngine parameter is null.

Return to top
Show: