Compartir a través de


PageModel.Unauthorized Método

Definición

Crea un objeto UnauthorizedResult que genera una Status401Unauthorized respuesta.

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

Devoluciones

creado UnauthorizedResult para la respuesta.

Se aplica a