Partager via


PolicyAuthorizationResult.Forbid Méthode

Définition

Surcharges

Forbid()

Indique que l’accès à une ressource a été interdit.

Forbid(AuthorizationFailure)

Indique que l’accès à une ressource a été interdit.

Forbid()

Source:
PolicyAuthorizationResult.cs
Source:
PolicyAuthorizationResult.cs
Source:
PolicyAuthorizationResult.cs

Indique que l’accès à une ressource a été interdit.

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

Retours

L’PolicyAuthorizationResultopérateur

S’applique à

Forbid(AuthorizationFailure)

Source:
PolicyAuthorizationResult.cs

Indique que l’accès à une ressource a été interdit.

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

Paramètres

authorizationFailure
AuthorizationFailure

Spécifie la raison pour laquelle l’autorisation a échoué.s

Retours

L’PolicyAuthorizationResultopérateur

S’applique à