PolicyAuthorizationResult.Forbid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.