PolicyAuthorizationResult.Forbid Método

Definição

Sobrecargas

Forbid()

Indica que o acesso a um recurso foi proibido.

Forbid(AuthorizationFailure)

Indica que o acesso a um recurso foi proibido.

Forbid()

Origem:
PolicyAuthorizationResult.cs
Origem:
PolicyAuthorizationResult.cs
Origem:
PolicyAuthorizationResult.cs

Indica que o acesso a um recurso foi proibido.

public:
 static Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ Forbid();
public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Forbid ();
static member Forbid : unit -> Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult
Public Shared Function Forbid () As PolicyAuthorizationResult

Retornos

O PolicyAuthorizationResult.

Aplica-se a

Forbid(AuthorizationFailure)

Origem:
PolicyAuthorizationResult.cs

Indica que o acesso a um recurso foi proibido.

public:
 static Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ Forbid(Microsoft::AspNetCore::Authorization::AuthorizationFailure ^ authorizationFailure);
public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Forbid (Microsoft.AspNetCore.Authorization.AuthorizationFailure? authorizationFailure);
static member Forbid : Microsoft.AspNetCore.Authorization.AuthorizationFailure -> Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult
Public Shared Function Forbid (authorizationFailure As AuthorizationFailure) As PolicyAuthorizationResult

Parâmetros

authorizationFailure
AuthorizationFailure

Especifica o motivo pelo qual a autorização falhou.s

Retornos

O PolicyAuthorizationResult.

Aplica-se a