Results.Unauthorized 方法

定义

生成 Status401Unauthorized 响应。

public static Microsoft.AspNetCore.Http.IResult Unauthorized ();
static member Unauthorized : unit -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Unauthorized () As IResult

返回

为响应创建的 IResult

适用于