Bagikan melalui


RazorView Konstruktor

Definisi

Overload

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

Menginisialisasi instans baru RazorView

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

Menginisialisasi instans baru RazorView

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

Menginisialisasi instans baru RazorView

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

Menginisialisasi instans baru 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)

Parameter

viewEngine
IRazorViewEngine

yang IRazorViewEngine digunakan untuk menemukan halaman Tata Letak.

pageActivator
IRazorPageActivator

yang IRazorPageActivator digunakan untuk mengaktifkan halaman.

viewStartPages
IReadOnlyList<IRazorPage>

Urutan IRazorPage instans yang dijalankan sebagai _ViewStarts.

razorPage
IRazorPage

Instans IRazorPage yang akan dijalankan.

htmlEncoder
HtmlEncoder

Encoder HTML.

Berlaku untuk

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

Sumber:
RazorView.cs

Menginisialisasi instans baru 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)

Parameter

viewEngine
IRazorViewEngine

yang IRazorViewEngine digunakan untuk menemukan halaman Tata Letak.

pageActivator
IRazorPageActivator

yang IRazorPageActivator digunakan untuk mengaktifkan halaman.

viewStartPages
IReadOnlyList<IRazorPage>

Urutan IRazorPage instans yang dijalankan sebagai _ViewStarts.

razorPage
IRazorPage

Instans IRazorPage yang akan dijalankan.

htmlEncoder
HtmlEncoder

Encoder HTML.

Berlaku untuk

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

Sumber:
RazorView.cs
Sumber:
RazorView.cs

Menginisialisasi instans baru 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)

Parameter

viewEngine
IRazorViewEngine

yang IRazorViewEngine digunakan untuk menemukan halaman Tata Letak.

pageActivator
IRazorPageActivator

yang IRazorPageActivator digunakan untuk mengaktifkan halaman.

viewStartPages
IReadOnlyList<IRazorPage>

Urutan IRazorPage instans yang dijalankan sebagai _ViewStarts.

razorPage
IRazorPage

Instans IRazorPage yang akan dijalankan.

htmlEncoder
HtmlEncoder

Encoder HTML.

Berlaku untuk