Condividi tramite


ControllerBase.Unauthorized Metodo

Definizione

Overload

Unauthorized(Object)

Crea un UnauthorizedObjectResult che produce una risposta Status401Unauthorized.

Unauthorized()

Crea un UnauthorizedResult che produce una risposta Status401Unauthorized.

Unauthorized(Object)

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un UnauthorizedObjectResult che produce una risposta 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

Parametri

value
Object

Restituisce

Il UnauthorizedObjectResult creato per la risposta.

Attributi

Si applica a

Unauthorized()

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un UnauthorizedResult che produce una risposta 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

Restituisce

Il UnauthorizedResult creato per la risposta.

Attributi

Si applica a