RazorSourceChecksumAttribute Class

Definition

Specifies the checksum of a source file that contributed to a compiled item.

C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class RazorSourceChecksumAttribute : Attribute, Microsoft.AspNetCore.Razor.Hosting.IRazorSourceChecksumMetadata
Inheritance
RazorSourceChecksumAttribute
Attributes
Implements

Remarks

These attributes are added by the Razor infrastructure when generating code to assist runtime implementations to determine the integrity of compiled items.

Runtime implementations should access the checksum metadata for an item using GetChecksumMetadata(RazorCompiledItem).

Constructors

Properties

Checksum

Gets the checksum as string of hex-encoded bytes.

ChecksumAlgorithm

Gets the name of the algorithm used to create this checksum.

Identifier

Gets the identifier of the source file associated with this checksum.

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0