Partilhar via


RazorViewEngine Construtores

Definição

Sobrecargas

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, ILoggerFactory)

Inicializa uma nova instância do RazorViewEngine.

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, ILoggerFactory, DiagnosticListener)

Inicializa uma nova instância do RazorViewEngine.

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProject, ILoggerFactory, DiagnosticSource)
Obsoleto.

Inicializa uma nova instância do RazorViewEngine.

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProjectFileSystem, ILoggerFactory, DiagnosticSource)

Inicializa uma nova instância do RazorViewEngine

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, ILoggerFactory)

Inicializa uma nova instância do RazorViewEngine.

public:
 RazorViewEngine(Microsoft::AspNetCore::Mvc::Razor::IRazorPageFactoryProvider ^ pageFactory, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::Razor::RazorViewEngineOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public RazorViewEngine (Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine
Public Sub New (pageFactory As IRazorPageFactoryProvider, pageActivator As IRazorPageActivator, htmlEncoder As HtmlEncoder, optionsAccessor As IOptions(Of RazorViewEngineOptions), loggerFactory As ILoggerFactory)

Parâmetros

pageActivator
IRazorPageActivator
htmlEncoder
HtmlEncoder
optionsAccessor
IOptions<RazorViewEngineOptions>
loggerFactory
ILoggerFactory

Aplica-se a

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, ILoggerFactory, DiagnosticListener)

Origem:
RazorViewEngine.cs

Inicializa uma nova instância do RazorViewEngine.

public:
 RazorViewEngine(Microsoft::AspNetCore::Mvc::Razor::IRazorPageFactoryProvider ^ pageFactory, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::Razor::RazorViewEngineOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Diagnostics::DiagnosticListener ^ diagnosticListener);
public RazorViewEngine (Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Diagnostics.DiagnosticListener diagnosticListener);
new Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> * Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.DiagnosticListener -> Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine
Public Sub New (pageFactory As IRazorPageFactoryProvider, pageActivator As IRazorPageActivator, htmlEncoder As HtmlEncoder, optionsAccessor As IOptions(Of RazorViewEngineOptions), loggerFactory As ILoggerFactory, diagnosticListener As DiagnosticListener)

Parâmetros

pageActivator
IRazorPageActivator
htmlEncoder
HtmlEncoder
optionsAccessor
IOptions<RazorViewEngineOptions>
loggerFactory
ILoggerFactory
diagnosticListener
DiagnosticListener

Aplica-se a

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProject, ILoggerFactory, DiagnosticSource)

Origem:
RazorViewEngine.cs
Origem:
RazorViewEngine.cs

Cuidado

This constructor is obsolete and will be removed in a future version.

Inicializa uma nova instância do RazorViewEngine.

public:
 RazorViewEngine(Microsoft::AspNetCore::Mvc::Razor::IRazorPageFactoryProvider ^ pageFactory, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::Razor::RazorViewEngineOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Razor::Language::RazorProject ^ razorProject, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Diagnostics::DiagnosticSource ^ diagnosticSource);
public RazorViewEngine (Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> optionsAccessor, Microsoft.AspNetCore.Razor.Language.RazorProject razorProject, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Diagnostics.DiagnosticSource diagnosticSource);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public RazorViewEngine (Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> optionsAccessor, Microsoft.AspNetCore.Razor.Language.RazorProject razorProject, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Diagnostics.DiagnosticSource diagnosticSource);
new Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> * Microsoft.AspNetCore.Razor.Language.RazorProject * Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.DiagnosticSource -> Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> * Microsoft.AspNetCore.Razor.Language.RazorProject * Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.DiagnosticSource -> Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine
Public Sub New (pageFactory As IRazorPageFactoryProvider, pageActivator As IRazorPageActivator, htmlEncoder As HtmlEncoder, optionsAccessor As IOptions(Of RazorViewEngineOptions), razorProject As RazorProject, loggerFactory As ILoggerFactory, diagnosticSource As DiagnosticSource)

Parâmetros

pageActivator
IRazorPageActivator
htmlEncoder
HtmlEncoder
optionsAccessor
IOptions<RazorViewEngineOptions>
razorProject
Microsoft.AspNetCore.Razor.Language.RazorProject
loggerFactory
ILoggerFactory
diagnosticSource
DiagnosticSource
Atributos

Aplica-se a

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProjectFileSystem, ILoggerFactory, DiagnosticSource)

Origem:
RazorViewEngine.cs
Origem:
RazorViewEngine.cs

Inicializa uma nova instância do RazorViewEngine

public:
 RazorViewEngine(Microsoft::AspNetCore::Mvc::Razor::IRazorPageFactoryProvider ^ pageFactory, Microsoft::AspNetCore::Mvc::Razor::IRazorPageActivator ^ pageActivator, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::Razor::RazorViewEngineOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Razor::Language::RazorProjectFileSystem ^ razorFileSystem, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Diagnostics::DiagnosticSource ^ diagnosticSource);
public RazorViewEngine (Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> optionsAccessor, Microsoft.AspNetCore.Razor.Language.RazorProjectFileSystem razorFileSystem, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Diagnostics.DiagnosticSource diagnosticSource);
new Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider * Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> * Microsoft.AspNetCore.Razor.Language.RazorProjectFileSystem * Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.DiagnosticSource -> Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine
Public Sub New (pageFactory As IRazorPageFactoryProvider, pageActivator As IRazorPageActivator, htmlEncoder As HtmlEncoder, optionsAccessor As IOptions(Of RazorViewEngineOptions), razorFileSystem As RazorProjectFileSystem, loggerFactory As ILoggerFactory, diagnosticSource As DiagnosticSource)

Parâmetros

pageActivator
IRazorPageActivator
htmlEncoder
HtmlEncoder
optionsAccessor
IOptions<RazorViewEngineOptions>
razorFileSystem
Microsoft.AspNetCore.Razor.Language.RazorProjectFileSystem
loggerFactory
ILoggerFactory
diagnosticSource
DiagnosticSource

Aplica-se a