RazorView Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder) |
Inicializa uma nova instância de RazorView |
RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticListener) |
Inicializa uma nova instância de RazorView |
RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticSource) |
Inicializa uma nova instância de RazorView |
RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder)
Inicializa uma nova instância de RazorView
public:
RazorView(Microsoft::AspNetCore::Mvc::Razor::IRazorViewEngine ^ viewEngine, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^> ^ viewStartPages, Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^ razorPage, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder);
public RazorView (Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine viewEngine, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> viewStartPages, Microsoft.AspNetCore.Mvc.Razor.IRazorPage razorPage, System.Text.Encodings.Web.HtmlEncoder htmlEncoder);
new Microsoft.AspNetCore.Mvc.Razor.RazorView : Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> * Microsoft.AspNetCore.Mvc.Razor.IRazorPage * System.Text.Encodings.Web.HtmlEncoder -> Microsoft.AspNetCore.Mvc.Razor.RazorView
Public Sub New (viewEngine As IRazorViewEngine, pageActivator As IRazorPageActivator, viewStartPages As IReadOnlyList(Of IRazorPage), razorPage As IRazorPage, htmlEncoder As HtmlEncoder)
Parâmetros
- viewEngine
- IRazorViewEngine
O IRazorViewEngine usado para localizar páginas de Layout.
- pageActivator
- IRazorPageActivator
O IRazorPageActivator usado para ativar páginas.
- viewStartPages
- IReadOnlyList<IRazorPage>
A sequência de IRazorPage instâncias executada como _ViewStarts.
- razorPage
- IRazorPage
A IRazorPage instância a ser executada.
- htmlEncoder
- HtmlEncoder
O codificador HTML.
Aplica-se a
RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticListener)
- Origem:
- RazorView.cs
Inicializa uma nova instância de RazorView
public:
RazorView(Microsoft::AspNetCore::Mvc::Razor::IRazorViewEngine ^ viewEngine, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^> ^ viewStartPages, Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^ razorPage, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, System::Diagnostics::DiagnosticListener ^ diagnosticListener);
public RazorView (Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine viewEngine, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> viewStartPages, Microsoft.AspNetCore.Mvc.Razor.IRazorPage razorPage, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Diagnostics.DiagnosticListener diagnosticListener);
new Microsoft.AspNetCore.Mvc.Razor.RazorView : Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> * Microsoft.AspNetCore.Mvc.Razor.IRazorPage * System.Text.Encodings.Web.HtmlEncoder * System.Diagnostics.DiagnosticListener -> Microsoft.AspNetCore.Mvc.Razor.RazorView
Public Sub New (viewEngine As IRazorViewEngine, pageActivator As IRazorPageActivator, viewStartPages As IReadOnlyList(Of IRazorPage), razorPage As IRazorPage, htmlEncoder As HtmlEncoder, diagnosticListener As DiagnosticListener)
Parâmetros
- viewEngine
- IRazorViewEngine
O IRazorViewEngine usado para localizar páginas de Layout.
- pageActivator
- IRazorPageActivator
O IRazorPageActivator usado para ativar páginas.
- viewStartPages
- IReadOnlyList<IRazorPage>
A sequência de IRazorPage instâncias executada como _ViewStarts.
- razorPage
- IRazorPage
A IRazorPage instância a ser executada.
- htmlEncoder
- HtmlEncoder
O codificador HTML.
- diagnosticListener
- DiagnosticListener
Aplica-se a
RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticSource)
- Origem:
- RazorView.cs
- Origem:
- RazorView.cs
Inicializa uma nova instância de RazorView
public:
RazorView(Microsoft::AspNetCore::Mvc::Razor::IRazorViewEngine ^ viewEngine, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^> ^ viewStartPages, Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^ razorPage, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, System::Diagnostics::DiagnosticSource ^ diagnosticSource);
public RazorView (Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine viewEngine, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> viewStartPages, Microsoft.AspNetCore.Mvc.Razor.IRazorPage razorPage, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Diagnostics.DiagnosticSource diagnosticSource);
new Microsoft.AspNetCore.Mvc.Razor.RazorView : Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> * Microsoft.AspNetCore.Mvc.Razor.IRazorPage * System.Text.Encodings.Web.HtmlEncoder * System.Diagnostics.DiagnosticSource -> Microsoft.AspNetCore.Mvc.Razor.RazorView
Public Sub New (viewEngine As IRazorViewEngine, pageActivator As IRazorPageActivator, viewStartPages As IReadOnlyList(Of IRazorPage), razorPage As IRazorPage, htmlEncoder As HtmlEncoder, diagnosticSource As DiagnosticSource)
Parâmetros
- viewEngine
- IRazorViewEngine
O IRazorViewEngine usado para localizar páginas de Layout.
- pageActivator
- IRazorPageActivator
O IRazorPageActivator usado para ativar páginas.
- viewStartPages
- IReadOnlyList<IRazorPage>
A sequência de IRazorPage instâncias executada como _ViewStarts.
- razorPage
- IRazorPage
A IRazorPage instância a ser executada.
- htmlEncoder
- HtmlEncoder
O codificador HTML.
- diagnosticSource
- DiagnosticSource