PageModel.Unauthorized 方法

定义

UnauthorizedResult创建生成响应的 Status401Unauthorized

public:
 virtual Microsoft::AspNetCore::Mvc::UnauthorizedResult ^ Unauthorized();
public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized ();
abstract member Unauthorized : unit -> Microsoft.AspNetCore.Mvc.UnauthorizedResult
override this.Unauthorized : unit -> Microsoft.AspNetCore.Mvc.UnauthorizedResult
Public Overridable Function Unauthorized () As UnauthorizedResult

返回

为响应创建的 UnauthorizedResult

适用于