Dela via


PolicyAuthorizationResult.Forbid Method

Definition

Overloads

Forbid()

Indicates that the access to a resource was forbidden.

Forbid(AuthorizationFailure)

Indicates that the access to a resource was forbidden.

Forbid()

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

Indicates that the access to a resource was forbidden.

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

Returns

The PolicyAuthorizationResult.

Applies to

Forbid(AuthorizationFailure)

Source:
PolicyAuthorizationResult.cs

Indicates that the access to a resource was forbidden.

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

Parameters

authorizationFailure
AuthorizationFailure

Specifies the reason the authorization failed.s

Returns

The PolicyAuthorizationResult.

Applies to