RazorPageAttribute 类

定义

注意

This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.

已过时:RazorCompiledItem 已取代此属性,运行时不会使用此属性。

public ref class RazorPageAttribute : Microsoft::AspNetCore::Mvc::Razor::Compilation::RazorViewAttribute
public 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.RazorViewAttribute
type RazorPageAttribute = class
    inherit RazorViewAttribute
[<System.Obsolete("This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.")>]
type RazorPageAttribute = class
    inherit RazorViewAttribute
Public Class RazorPageAttribute
Inherits RazorViewAttribute
继承
RazorPageAttribute
属性

构造函数

RazorPageAttribute(String, Type, String)
已过时.

此属性已被 RazorCompiledItem 取代,运行时不会使用。

属性

Path
已过时.

获取视图的路径。

(继承自 RazorViewAttribute)
RouteTemplate
已过时.

路由模板。

ViewType
已过时.

获取视图类型。

(继承自 RazorViewAttribute)

适用于