RazorPageAttribute 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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::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.")]
public class RazorPageAttribute : Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttributetype 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 RazorViewAttributePublic Class RazorPageAttribute
Inherits RazorViewAttribute- 继承
- 属性
构造函数
| RazorPageAttribute(String, Type, String) | 
				已过时.
			 此属性已被 RazorCompiledItem 取代,运行时不会使用。 | 
属性
| Path | 
		已过时.
	 获取视图的路径。(继承自 RazorViewAttribute) | 
| RouteTemplate | 
				已过时.
			 路由模板。 | 
| ViewType | 
		已过时.
	 获取视图类型。(继承自 RazorViewAttribute) |