RazorView Constructors
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.
Overloads
RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>) |
Initializes a new instance of the RazorView class. |
RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>, IViewPageActivator) |
Initializes a new instance of the RazorView class using the view page activator. |
RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>)
Initializes a new instance of the RazorView class.
public RazorView (System.Web.Mvc.ControllerContext controllerContext, string viewPath, string layoutPath, bool runViewStartPages, System.Collections.Generic.IEnumerable<string> viewStartFileExtensions);
new System.Web.Mvc.RazorView : System.Web.Mvc.ControllerContext * string * string * bool * seq<string> -> System.Web.Mvc.RazorView
Public Sub New (controllerContext As ControllerContext, viewPath As String, layoutPath As String, runViewStartPages As Boolean, viewStartFileExtensions As IEnumerable(Of String))
Parameters
- controllerContext
- ControllerContext
The controller context.
- viewPath
- String
The view path.
- layoutPath
- String
The layout or master page.
- runViewStartPages
- Boolean
A value that indicates whether view start files should be executed before the view.
- viewStartFileExtensions
- IEnumerable<String>
The set of extensions that will be used when looking up view start files.
Applies to
RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>, IViewPageActivator)
Initializes a new instance of the RazorView class using the view page activator.
public RazorView (System.Web.Mvc.ControllerContext controllerContext, string viewPath, string layoutPath, bool runViewStartPages, System.Collections.Generic.IEnumerable<string> viewStartFileExtensions, System.Web.Mvc.IViewPageActivator viewPageActivator);
new System.Web.Mvc.RazorView : System.Web.Mvc.ControllerContext * string * string * bool * seq<string> * System.Web.Mvc.IViewPageActivator -> System.Web.Mvc.RazorView
Public Sub New (controllerContext As ControllerContext, viewPath As String, layoutPath As String, runViewStartPages As Boolean, viewStartFileExtensions As IEnumerable(Of String), viewPageActivator As IViewPageActivator)
Parameters
- controllerContext
- ControllerContext
The controller context.
- viewPath
- String
The view path.
- layoutPath
- String
The layout or master page.
- runViewStartPages
- Boolean
A value that indicates whether view start files should be executed before the view.
- viewStartFileExtensions
- IEnumerable<String>
The set of extensions that will be used when looking up view start files.
- viewPageActivator
- IViewPageActivator
The view page activator.