PageModel.Unauthorized PageModel.Unauthorized PageModel.Unauthorized Method

Definition

Creates an UnauthorizedResult that produces an Status401Unauthorized response.

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

Returns

Applies to