ScriptTagHelper Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
ScriptTagHelper(IHostingEnvironment, IMemoryCache, HtmlEncoder, JavaScriptEncoder, IUrlHelperFactory)
Внимание!
This constructor is obsolete and will be removed in a future version.
Создает новый экземпляр ScriptTagHelper.
public:
ScriptTagHelper(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, Microsoft::Extensions::Caching::Memory::IMemoryCache ^ cache, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, System::Text::Encodings::Web::JavaScriptEncoder ^ javaScriptEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
public ScriptTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.Extensions.Caching.Memory.IMemoryCache cache, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.JavaScriptEncoder javaScriptEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public ScriptTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.Extensions.Caching.Memory.IMemoryCache cache, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.JavaScriptEncoder javaScriptEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
new Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Caching.Memory.IMemoryCache * System.Text.Encodings.Web.HtmlEncoder * System.Text.Encodings.Web.JavaScriptEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Caching.Memory.IMemoryCache * System.Text.Encodings.Web.HtmlEncoder * System.Text.Encodings.Web.JavaScriptEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper
Public Sub New (hostingEnvironment As IHostingEnvironment, cache As IMemoryCache, htmlEncoder As HtmlEncoder, javaScriptEncoder As JavaScriptEncoder, urlHelperFactory As IUrlHelperFactory)
Параметры
- hostingEnvironment
- IHostingEnvironment
- cache
- IMemoryCache
- htmlEncoder
- HtmlEncoder
- javaScriptEncoder
- JavaScriptEncoder
- urlHelperFactory
- IUrlHelperFactory
- Атрибуты
Применяется к
ScriptTagHelper(IHostingEnvironment, TagHelperMemoryCacheProvider, IFileVersionProvider, HtmlEncoder, JavaScriptEncoder, IUrlHelperFactory)
Создает новый экземпляр ScriptTagHelper.
public:
ScriptTagHelper(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, Microsoft::AspNetCore::Mvc::Razor::Infrastructure::TagHelperMemoryCacheProvider ^ cacheProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::IFileVersionProvider ^ fileVersionProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, System::Text::Encodings::Web::JavaScriptEncoder ^ javaScriptEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
[Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor]
public ScriptTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.JavaScriptEncoder javaScriptEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
[<Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor>]
new Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider * System.Text.Encodings.Web.HtmlEncoder * System.Text.Encodings.Web.JavaScriptEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper
Public Sub New (hostingEnvironment As IHostingEnvironment, cacheProvider As TagHelperMemoryCacheProvider, fileVersionProvider As IFileVersionProvider, htmlEncoder As HtmlEncoder, javaScriptEncoder As JavaScriptEncoder, urlHelperFactory As IUrlHelperFactory)
Параметры
- hostingEnvironment
- IHostingEnvironment
- cacheProvider
- TagHelperMemoryCacheProvider
- fileVersionProvider
- IFileVersionProvider
- htmlEncoder
- HtmlEncoder
- javaScriptEncoder
- JavaScriptEncoder
- urlHelperFactory
- IUrlHelperFactory
- Атрибуты
Применяется к
ScriptTagHelper(IWebHostEnvironment, TagHelperMemoryCacheProvider, IFileVersionProvider, HtmlEncoder, JavaScriptEncoder, IUrlHelperFactory)
Создает новый экземпляр ScriptTagHelper.
public:
ScriptTagHelper(Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnvironment, Microsoft::AspNetCore::Mvc::Razor::Infrastructure::TagHelperMemoryCacheProvider ^ cacheProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::IFileVersionProvider ^ fileVersionProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, System::Text::Encodings::Web::JavaScriptEncoder ^ javaScriptEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
public ScriptTagHelper (Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.JavaScriptEncoder javaScriptEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
new Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper : Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider * System.Text.Encodings.Web.HtmlEncoder * System.Text.Encodings.Web.JavaScriptEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper
Public Sub New (hostingEnvironment As IWebHostEnvironment, cacheProvider As TagHelperMemoryCacheProvider, fileVersionProvider As IFileVersionProvider, htmlEncoder As HtmlEncoder, javaScriptEncoder As JavaScriptEncoder, urlHelperFactory As IUrlHelperFactory)
Параметры
- hostingEnvironment
- IWebHostEnvironment
- cacheProvider
- TagHelperMemoryCacheProvider
- fileVersionProvider
- IFileVersionProvider
- htmlEncoder
- HtmlEncoder
- javaScriptEncoder
- JavaScriptEncoder
- urlHelperFactory
- IUrlHelperFactory
Применяется к
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по