PageContextAttribute 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定在创建模型实例时应使用当前 PageContext 设置 Razor 页面模型属性。 属性必须具有公共集方法。
public ref class PageContextAttribute : Attribute[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class PageContextAttribute : Attribute[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type PageContextAttribute = class
    inherit AttributePublic Class PageContextAttribute
Inherits Attribute- 继承
- 
				PageContextAttribute
- 属性
构造函数
| PageContextAttribute() | 指定在创建模型实例时应使用当前 PageContext 设置 Razor 页面模型属性。 属性必须具有公共集方法。 |