zoukankan      html  css  js  c++  java
  • 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 {
    }
  • 相关阅读:
    自动换行的两种代码(C#)
    C#的SubString(int start,int end);
    php数组添加元素的方法
    php通过生成动态变量(变量名中还有变量)
    php定义空的数组
    php的$GLOBALS例子
    WINCRIS的使用
    java的PreparedStatement中使用like时的问题
    php发送get请求
    在HTML中使用object和embed标签插入视频
  • 原文地址:https://www.cnblogs.com/chinaniit/p/1519545.html
Copyright © 2011-2022 走看看