Compartir a través de


AuthorizationHandlerContext.Fail Método

Definición

Sobrecargas

Fail()

Se llama a para indicar HasSucceeded que nunca devolverá true, incluso si se cumplen todos los requisitos.

Fail(AuthorizationFailureReason)

Se llama a para indicar HasSucceeded que nunca devolverá true, incluso si se cumplen todos los requisitos.

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

Se llama a para indicar HasSucceeded que nunca devolverá true, incluso si se cumplen todos los requisitos.

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 ()

Se aplica a

Fail(AuthorizationFailureReason)

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

Se llama a para indicar HasSucceeded que nunca devolverá true, incluso si se cumplen todos los requisitos.

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)

Parámetros

reason
AuthorizationFailureReason

Opcional AuthorizationFailureReason para el motivo por el que se produjo un error de autorización.

Se aplica a