RazorPageAttribute Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.
Obsolete: This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.
public ref class RazorPageAttribute : Microsoft::AspNetCore::Mvc::Razor::Compilation::RazorViewAttribute[System.Obsolete("This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.")]
public class RazorPageAttribute : Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttributepublic class RazorPageAttribute : Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute[<System.Obsolete("This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.")>]
type RazorPageAttribute = class
    inherit RazorViewAttributetype RazorPageAttribute = class
    inherit RazorViewAttributePublic Class RazorPageAttribute
Inherits RazorViewAttribute- Inheritance
- Attributes
Constructors
| RazorPageAttribute(String, Type, String) | This attribute has been superseded by RazorCompiledItem and will not be used by the runtime. | 
Properties
| Path | Gets the path of the view.(Inherited from RazorViewAttribute) | 
| RouteTemplate | The route template. | 
| ViewType | Gets the view type.(Inherited from RazorViewAttribute) |