ControllerBase.Unauthorized ControllerBase.Unauthorized ControllerBase.Unauthorized Method

Definition

Overloads

Unauthorized() Unauthorized() Unauthorized()

Creates an UnauthorizedResult that produces an Status401Unauthorized response.

Unauthorized(Object) Unauthorized(Object) Unauthorized(Object)

Creates an UnauthorizedObjectResult that produces a Status401Unauthorized response.

Unauthorized() Unauthorized() Unauthorized()

Creates an UnauthorizedResult that produces an Status401Unauthorized response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized ();
abstract member Unauthorized : unit -> Microsoft.AspNetCore.Mvc.UnauthorizedResult
override this.Unauthorized : unit -> Microsoft.AspNetCore.Mvc.UnauthorizedResult
Public Overridable Function Unauthorized () As UnauthorizedResult

Returns

Unauthorized(Object) Unauthorized(Object) Unauthorized(Object)

Creates an UnauthorizedObjectResult that produces a Status401Unauthorized response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult Unauthorized (object value);
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

Parameters

Returns

Applies to