Udostępnij za pośrednictwem


ControllerBase.Unauthorized Metoda

Definicja

Przeciążenia

Unauthorized(Object)

Tworzy UnauthorizedObjectResult, który generuje odpowiedź Status401Unauthorized.

Unauthorized()

Tworzy UnauthorizedResult, który generuje odpowiedź Status401Unauthorized.

Unauthorized(Object)

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

Tworzy UnauthorizedObjectResult, który generuje odpowiedź 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

Parametry

value
Object

Zwraca

Utworzona UnauthorizedObjectResult odpowiedzi.

Atrybuty

Dotyczy

Unauthorized()

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

Tworzy UnauthorizedResult, który generuje odpowiedź 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

Zwraca

Utworzona UnauthorizedResult odpowiedzi.

Atrybuty

Dotyczy