ControllerBase.Unauthorized Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
Unauthorized(Object) |
Crea un UnauthorizedObjectResult que genera una respuesta Status401Unauthorized. |
Unauthorized() |
Crea un UnauthorizedResult que genera una respuesta Status401Unauthorized. |
Unauthorized(Object)
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
Crea un UnauthorizedObjectResult que genera una respuesta Status401Unauthorized.
public:
virtual Microsoft::AspNetCore::Mvc::UnauthorizedObjectResult ^ Unauthorized(System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult Unauthorized (object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult Unauthorized (object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Unauthorized : obj -> Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult
override this.Unauthorized : obj -> Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult
Public Overridable Function Unauthorized (value As Object) As UnauthorizedObjectResult
Parámetros
- value
- Object
Devoluciones
El UnauthorizedObjectResult creado para la respuesta.
- Atributos
Se aplica a
Unauthorized()
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
Crea un UnauthorizedResult que genera una respuesta Status401Unauthorized.
public:
virtual Microsoft::AspNetCore::Mvc::UnauthorizedResult ^ Unauthorized();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Unauthorized : unit -> Microsoft.AspNetCore.Mvc.UnauthorizedResult
override this.Unauthorized : unit -> Microsoft.AspNetCore.Mvc.UnauthorizedResult
Public Overridable Function Unauthorized () As UnauthorizedResult
Devoluciones
El UnauthorizedResult creado para la respuesta.
- Atributos