Udostępnij za pośrednictwem


RazorView Konstruktory

Definicja

Przeciążenia

RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>)

Inicjuje nowe wystąpienie klasy RazorView.

RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>, IViewPageActivator)

Inicjuje RazorView nowe wystąpienie klasy przy użyciu aktywatora strony widoku.

RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>)

Inicjuje nowe wystąpienie klasy RazorView.

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))

Parametry

controllerContext
ControllerContext

Kontekst kontrolera.

viewPath
String

Ścieżka widoku.

layoutPath
String

Układ lub strona wzorcowa.

runViewStartPages
Boolean

Wartość wskazująca, czy przed widokiem powinny być wykonywane pliki początkowe.

viewStartFileExtensions
IEnumerable<String>

Zestaw rozszerzeń, które będą używane podczas wyszukiwania plików uruchamiania widoku.

Dotyczy

RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>, IViewPageActivator)

Inicjuje RazorView nowe wystąpienie klasy przy użyciu aktywatora strony widoku.

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)

Parametry

controllerContext
ControllerContext

Kontekst kontrolera.

viewPath
String

Ścieżka widoku.

layoutPath
String

Układ lub strona wzorcowa.

runViewStartPages
Boolean

Wartość wskazująca, czy przed widokiem powinny być wykonywane pliki początkowe.

viewStartFileExtensions
IEnumerable<String>

Zestaw rozszerzeń, które będą używane podczas wyszukiwania plików uruchamiania widoku.

viewPageActivator
IViewPageActivator

Aktywator strony widoku.

Dotyczy