AuthorizationHandlerContext.Fail Method

Definition

Overloads

Fail()

Called to indicate HasSucceeded will never return true, even if all requirements are met.

Fail(AuthorizationFailureReason)

Called to indicate HasSucceeded will never return true, even if all requirements are met.

Fail()

Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs

Called to indicate HasSucceeded will never return true, even if all requirements are met.

public:
 void Fail();
public:
 virtual void Fail();
public void Fail ();
public virtual void Fail ();
member this.Fail : unit -> unit
abstract member Fail : unit -> unit
override this.Fail : unit -> unit
Public Sub Fail ()
Public Overridable Sub Fail ()

Applies to

Fail(AuthorizationFailureReason)

Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs
Source:
AuthorizationHandlerContext.cs

Called to indicate HasSucceeded will never return true, even if all requirements are met.

public virtual void Fail (Microsoft.AspNetCore.Authorization.AuthorizationFailureReason reason);
abstract member Fail : Microsoft.AspNetCore.Authorization.AuthorizationFailureReason -> unit
override this.Fail : Microsoft.AspNetCore.Authorization.AuthorizationFailureReason -> unit
Public Overridable Sub Fail (reason As AuthorizationFailureReason)

Parameters

reason
AuthorizationFailureReason

Optional AuthorizationFailureReason for why authorization failed.

Applies to