Table of Contents

ImageTagHelper<TOptions> Class

Definition

Namespace
Cuemon.AspNetCore.Razor.TagHelpers
Assemblies
Cuemon.AspNetCore.Razor.TagHelpers.dll
Source
src/Cuemon.AspNetCore.Razor.TagHelpers/ImageTagHelper.cs

Provides a base-class for targeting <img> elements that supports ICacheBusting versioning.

public abstract class ImageTagHelper<TOptions> : CacheBustingTagHelper<TOptions>, ITagHelper, ITagHelperComponent, IConfigurable<TOptions> where TOptions : TagHelperOptions, new()

Type Parameters

TOptions
Inheritance
ImageTagHelper<TOptions>
Implements
IConfigurable<TOptions>
Derived
Inherited Members

Constructors

Name Description
ImageTagHelper(IOptions<TOptions>, ICacheBusting)

Initializes a new instance of the ImageTagHelper<TOptions> class.

Properties

Name Description
Alt

Gets or sets the alternative text of the image.

Class

Gets or sets the class name of the image.

Id

Gets or sets the identifier of the image.

Src

Gets or sets the source of the image.

Title

Gets or sets the title of the image.

Methods

Name Description
ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

See Also