共用方式為


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 的 。

適用於