Поделиться через


RazorViewEngine Конструкторы

Определение

Перегрузки

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

Инициализирует новый экземпляр класса RazorViewEngine.

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

Инициализирует новый экземпляр класса RazorViewEngine.

RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProject, ILoggerFactory, DiagnosticSource)
Устаревшие..

Инициализирует новый экземпляр класса RazorViewEngine.

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

Инициализирует новый экземпляр RazorViewEngine.

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

Инициализирует новый экземпляр класса 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)

Параметры

pageActivator
IRazorPageActivator
htmlEncoder
HtmlEncoder
optionsAccessor
IOptions<RazorViewEngineOptions>
loggerFactory
ILoggerFactory

Применяется к

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

Исходный код:
RazorViewEngine.cs

Инициализирует новый экземпляр класса 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)

Параметры

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

Применяется к

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

Исходный код:
RazorViewEngine.cs
Исходный код:
RazorViewEngine.cs

Внимание!

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

Инициализирует новый экземпляр класса 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)

Параметры

pageActivator
IRazorPageActivator
htmlEncoder
HtmlEncoder
optionsAccessor
IOptions<RazorViewEngineOptions>
razorProject
Microsoft.AspNetCore.Razor.Language.RazorProject
loggerFactory
ILoggerFactory
diagnosticSource
DiagnosticSource
Атрибуты

Применяется к

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

Исходный код:
RazorViewEngine.cs
Исходный код:
RazorViewEngine.cs

Инициализирует новый экземпляр 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)

Параметры

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

Применяется к