Share via


Results.Unauthorized Method

Definition

Produces a Status401Unauthorized response.

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

Returns

The created IResult for the response.

Applies to