ImageTagHelper Constructors

Definition

Overloads

ImageTagHelper(IFileVersionProvider, HtmlEncoder, IUrlHelperFactory)

Creates a new ImageTagHelper.

ImageTagHelper(IHostingEnvironment, IMemoryCache, HtmlEncoder, IUrlHelperFactory)
Obsolete.

Creates a new ImageTagHelper.

ImageTagHelper(IHostingEnvironment, TagHelperMemoryCacheProvider, IFileVersionProvider, HtmlEncoder, IUrlHelperFactory)

Creates a new ImageTagHelper.

ImageTagHelper(IWebHostEnvironment, TagHelperMemoryCacheProvider, IFileVersionProvider, HtmlEncoder, IUrlHelperFactory)
Obsolete.

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

ImageTagHelper(IFileVersionProvider, HtmlEncoder, IUrlHelperFactory)

Creates a new ImageTagHelper.

public:
 ImageTagHelper(Microsoft::AspNetCore::Mvc::ViewFeatures::IFileVersionProvider ^ fileVersionProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
[Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor]
public ImageTagHelper (Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
[<Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor>]
new Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper : Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper
Public Sub New (fileVersionProvider As IFileVersionProvider, htmlEncoder As HtmlEncoder, urlHelperFactory As IUrlHelperFactory)

Parameters

fileVersionProvider
IFileVersionProvider

The IFileVersionProvider.

htmlEncoder
HtmlEncoder

The HtmlEncoder to use.

urlHelperFactory
IUrlHelperFactory

The IUrlHelperFactory.

Attributes

Applies to

ImageTagHelper(IHostingEnvironment, IMemoryCache, HtmlEncoder, IUrlHelperFactory)

Caution

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

Creates a new ImageTagHelper.

public:
 ImageTagHelper(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, Microsoft::Extensions::Caching::Memory::IMemoryCache ^ cache, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
public ImageTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.Extensions.Caching.Memory.IMemoryCache cache, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public ImageTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.Extensions.Caching.Memory.IMemoryCache cache, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
new Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Caching.Memory.IMemoryCache * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Caching.Memory.IMemoryCache * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper
Public Sub New (hostingEnvironment As IHostingEnvironment, cache As IMemoryCache, htmlEncoder As HtmlEncoder, urlHelperFactory As IUrlHelperFactory)

Parameters

hostingEnvironment
IHostingEnvironment

The IHostingEnvironment.

htmlEncoder
HtmlEncoder

The HtmlEncoder to use.

urlHelperFactory
IUrlHelperFactory

The IUrlHelperFactory.

Attributes

Applies to

ImageTagHelper(IHostingEnvironment, TagHelperMemoryCacheProvider, IFileVersionProvider, HtmlEncoder, IUrlHelperFactory)

Creates a new ImageTagHelper.

public:
 ImageTagHelper(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, Microsoft::AspNetCore::Mvc::Razor::Infrastructure::TagHelperMemoryCacheProvider ^ cacheProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::IFileVersionProvider ^ fileVersionProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
[Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor]
public ImageTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
[<Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor>]
new Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper
Public Sub New (hostingEnvironment As IHostingEnvironment, cacheProvider As TagHelperMemoryCacheProvider, fileVersionProvider As IFileVersionProvider, htmlEncoder As HtmlEncoder, urlHelperFactory As IUrlHelperFactory)

Parameters

hostingEnvironment
IHostingEnvironment

The IHostingEnvironment.

fileVersionProvider
IFileVersionProvider

The IFileVersionProvider.

htmlEncoder
HtmlEncoder

The HtmlEncoder to use.

urlHelperFactory
IUrlHelperFactory

The IUrlHelperFactory.

Attributes

Applies to

ImageTagHelper(IWebHostEnvironment, TagHelperMemoryCacheProvider, IFileVersionProvider, HtmlEncoder, IUrlHelperFactory)

Caution

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

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

public:
 ImageTagHelper(Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnvironment, Microsoft::AspNetCore::Mvc::Razor::Infrastructure::TagHelperMemoryCacheProvider ^ cacheProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::IFileVersionProvider ^ fileVersionProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public ImageTagHelper (Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory);
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper : Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory -> Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper
Public Sub New (hostingEnvironment As IWebHostEnvironment, cacheProvider As TagHelperMemoryCacheProvider, fileVersionProvider As IFileVersionProvider, htmlEncoder As HtmlEncoder, urlHelperFactory As IUrlHelperFactory)

Parameters

hostingEnvironment
IWebHostEnvironment

The IHostingEnvironment.

fileVersionProvider
IFileVersionProvider

The IFileVersionProvider.

htmlEncoder
HtmlEncoder

The HtmlEncoder to use.

urlHelperFactory
IUrlHelperFactory

The IUrlHelperFactory.

Attributes

Applies to