AuthorizationBuilder.AddFallbackPolicy 方法

定义

重载

AddFallbackPolicy(String, AuthorizationPolicy)

添加一个策略,该策略是从具有所提供的名称的委托生成的,并用作 FallbackPolicy 的策略。

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

添加一个策略,该策略是从具有所提供的名称的委托生成的,并用作 FallbackPolicy 的策略。

AddFallbackPolicy(String, AuthorizationPolicy)

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

添加一个策略,该策略是从具有所提供的名称的委托生成的,并用作 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

参数

name
String

FallbackPolicy 的名称。

返回

生成器。

适用于

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

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

添加一个策略,该策略是从具有所提供的名称的委托生成的,并用作 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

参数

name
String

回退策略的名称。

configurePolicy
Action<AuthorizationPolicyBuilder>

将用于生成回退策略的委托。

返回

生成器。

适用于