简体   繁体   中英

asp.net mvc difference between OnAuthorization and OnActionExecuting

有人可以帮助解释asp.net mvc中OnAuthorization和OnActionExecuting之间的区别吗?

OnAuthorization gets called when authorization occurs and OnActionExecuting gets called before the action method is invoked. Authorization will occure before action execution. This gives you chance to check if user is authorized to execute that action.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM