实施例
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class RedirectingActionAttribute : ActionFilterAttribute
但如果我们不使用AttributeUsage
,ActionFilterAttribute
的默认值是什么。我在谷歌搜索但我找不到它。
答案 0 :(得分:5)
这是ActionFilterAttribute
的默认值[System.AttributeUsage(System.AttributeTargets.All,
AllowMultiple = false,
Inherited = true)]