AuthorizationBuilder.AddFallbackPolicy Method

Definition

Overloads

AddFallbackPolicy(String, AuthorizationPolicy)

Add a policy that is built from a delegate with the provided name and used as the FallbackPolicy.

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

Add a policy that is built from a delegate with the provided name and used as the FallbackPolicy.

AddFallbackPolicy(String, AuthorizationPolicy)

Source:
AuthorizationBuilder.cs
Source:
AuthorizationBuilder.cs
Source:
AuthorizationBuilder.cs

Add a policy that is built from a delegate with the provided name and used as the FallbackPolicy.

public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddFallbackPolicy (string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
abstract member AddFallbackPolicy : string * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
override this.AddFallbackPolicy : string * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
Public Overridable Function AddFallbackPolicy (name As String, policy As AuthorizationPolicy) As AuthorizationBuilder

Parameters

name
String

The name of the FallbackPolicy.

Returns

The builder.

Applies to

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

Source:
AuthorizationBuilder.cs
Source:
AuthorizationBuilder.cs
Source:
AuthorizationBuilder.cs

Add a policy that is built from a delegate with the provided name and used as the FallbackPolicy.

public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddFallbackPolicy (string name, Action<Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder> configurePolicy);
abstract member AddFallbackPolicy : string * Action<Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder> -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
override this.AddFallbackPolicy : string * Action<Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder> -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
Public Overridable Function AddFallbackPolicy (name As String, configurePolicy As Action(Of AuthorizationPolicyBuilder)) As AuthorizationBuilder

Parameters

name
String

The name of the Fallback policy.

configurePolicy
Action<AuthorizationPolicyBuilder>

The delegate that will be used to build the Fallback policy.

Returns

The builder.

Applies to