📜  ActionExecutingContext 结果响应返回对象 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:05.585000             🧑  作者: Mango

代码示例3
public override void OnActionExecuting(ActionExecutingContext context)
{
  context.Result = new UnauthorizedObjectResult("user is unauthorized");
}