CompiledViewDescriptor Class

Definition

Represents a compiled Razor View or Page.

C#
public class CompiledViewDescriptor
Inheritance
CompiledViewDescriptor

Constructors

Properties

ExpirationTokens

IChangeToken instances that indicate when this result has expired.

IsPrecompiled

Gets a value that determines if the view is precompiled.

Item

Gets the RazorCompiledItem descriptor for this view.

RelativePath

The normalized application relative path of the view.

Type

Gets the type of the compiled item.

ViewAttribute
Obsolete.

Gets or sets the RazorViewAttribute decorating the view.

Applies to

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