本文共 146 字,大约阅读时间需要 1 分钟。
var action = context.ActionDescriptor as ControllerActionDescriptor;var permission = action.MethodInfo.GetCustomAttribute ();
大概就是这样。
转载地址:http://hetkz.baihongyu.com/