Compartilhar via


ControllerBase.Unauthorized Método

Definição

Sobrecargas

Unauthorized(Object)

Cria um UnauthorizedObjectResult que produz uma resposta Status401Unauthorized.

Unauthorized()

Cria um UnauthorizedResult que produz uma resposta Status401Unauthorized.

Unauthorized(Object)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um UnauthorizedObjectResult que produz uma resposta 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

Retornos

O UnauthorizedObjectResult criado para a resposta.

Atributos

Aplica-se a

Unauthorized()

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um UnauthorizedResult que produz uma resposta 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

Retornos

O UnauthorizedResult criado para a resposta.

Atributos

Aplica-se a