Sdílet prostřednictvím


RazorView Konstruktory

Definice

Přetížení

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder)

Inicializuje novou instanci RazorView

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticListener)

Inicializuje novou instanci RazorView

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticSource)

Inicializuje novou instanci RazorView

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder)

Inicializuje novou instanci 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)

Parametry

viewEngine
IRazorViewEngine

Slouží IRazorViewEngine k vyhledání stránek rozložení.

pageActivator
IRazorPageActivator

Slouží IRazorPageActivator k aktivaci stránek.

viewStartPages
IReadOnlyList<IRazorPage>

Posloupnost IRazorPage instancí spuštěných jako _ViewStarts.

razorPage
IRazorPage

Instance IRazorPage , která se má spustit.

htmlEncoder
HtmlEncoder

Kodér HTML.

Platí pro

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticListener)

Zdroj:
RazorView.cs

Inicializuje novou instanci 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)

Parametry

viewEngine
IRazorViewEngine

Slouží IRazorViewEngine k vyhledání stránek rozložení.

pageActivator
IRazorPageActivator

Slouží IRazorPageActivator k aktivaci stránek.

viewStartPages
IReadOnlyList<IRazorPage>

Posloupnost IRazorPage instancí spuštěných jako _ViewStarts.

razorPage
IRazorPage

Instance IRazorPage , která se má spustit.

htmlEncoder
HtmlEncoder

Kodér HTML.

diagnosticListener
DiagnosticListener

Hodnota DiagnosticListener

Platí pro

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticSource)

Zdroj:
RazorView.cs
Zdroj:
RazorView.cs

Inicializuje novou instanci 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)

Parametry

viewEngine
IRazorViewEngine

Slouží IRazorViewEngine k vyhledání stránek rozložení.

pageActivator
IRazorPageActivator

Slouží IRazorPageActivator k aktivaci stránek.

viewStartPages
IReadOnlyList<IRazorPage>

Posloupnost IRazorPage instancí spuštěných jako _ViewStarts.

razorPage
IRazorPage

Instance IRazorPage , která se má spustit.

htmlEncoder
HtmlEncoder

Kodér HTML.

diagnosticSource
DiagnosticSource

Hodnota DiagnosticSource

Platí pro