Bagikan melalui


ControllerBase.Unauthorized Metode

Definisi

Overload

Unauthorized(Object)

Membuat UnauthorizedObjectResult yang menghasilkan respons Status401Unauthorized.

Unauthorized()

Membuat UnauthorizedResult yang menghasilkan respons Status401Unauthorized.

Unauthorized(Object)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

Membuat UnauthorizedObjectResult yang menghasilkan respons 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

Parameter

value
Object

Mengembalikan

UnauthorizedObjectResult yang dibuat untuk respons.

Atribut

Berlaku untuk

Unauthorized()

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

Membuat UnauthorizedResult yang menghasilkan respons 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

Mengembalikan

UnauthorizedResult yang dibuat untuk respons.

Atribut

Berlaku untuk