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