• asp.net mvc source(3)Attribute


        [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
        
    public abstract class ActionNameSelectorAttribute : Attribute {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
        
    public class OutputCacheAttribute : ActionFilterAttribute {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
        
    public abstract class ActionFilterAttribute : FilterAttribute, IActionFilter, IResultFilter {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
        
    public abstract class FilterAttribute : Attribute {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
        
    public sealed class BindAttribute : Attribute {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
        
    public class AuthorizeAttribute : FilterAttribute, IAuthorizationFilter {}
    private sealed class FormCollectionBinderAttribute : CustomModelBinderAttribute {}
        [AttributeUsage(ValidTargets, AllowMultiple = false, Inherited = false)]
        
    public abstract class CustomModelBinderAttribute : Attribute {}
        [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
        
    public sealed class AcceptVerbsAttribute : ActionMethodSelectorAttribute {}
        [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
        
    public abstract class ActionMethodSelectorAttribute : Attribute {}
        [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
        
    public sealed class ActionNameAttribute : ActionNameSelectorAttribute {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
        
    public sealed class ValidateAntiForgeryTokenAttribute : FilterAttribute, IAuthorizationFilter {}
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
        
    public class ValidateInputAttribute : FilterAttribute, IAuthorizationFilter {
    }
  • 相关阅读:
    完整java开发中JDBC连接数据库代码和步骤
    2007最后一贴
    ajax数据加载经验分享
    vs2008中文版提供下载(包含中文msdn)
    修改服务器控件的ID和Name
    你使用控件吗?会用吗?
    自定义控件集
    asp.net控件开发基础示例代码打包
    javascript好文章收藏
    wpf学习笔记简单绑定
  • 原文地址:https://www.cnblogs.com/chinaniit/p/1519545.html
Copyright © 2020-2023  润新知