Share via


RazorSourceChecksumAttribute Class

Definition

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

public ref class RazorSourceChecksumAttribute sealed : Attribute, Microsoft::AspNetCore::Razor::Hosting::IRazorSourceChecksumMetadata
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class RazorSourceChecksumAttribute : Attribute, Microsoft.AspNetCore.Razor.Hosting.IRazorSourceChecksumMetadata
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type RazorSourceChecksumAttribute = class
    inherit Attribute
    interface IRazorSourceChecksumMetadata
Public NotInheritable Class RazorSourceChecksumAttribute
Inherits Attribute
Implements 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

RazorSourceChecksumAttribute(String, String, String)

Creates a new RazorSourceChecksumAttribute.

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