共用方式為


AuthorizationBuilder.AddFallbackPolicy 方法

定義

多載

AddFallbackPolicy(String, AuthorizationPolicy)

新增從具有所提供名稱的委派建置的原則,並作為 FallbackPolicy 使用。

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

新增從具有所提供名稱的委派建置的原則,並作為 FallbackPolicy 使用。

AddFallbackPolicy(String, AuthorizationPolicy)

來源:
AuthorizationBuilder.cs
來源:
AuthorizationBuilder.cs
來源:
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>)

來源:
AuthorizationBuilder.cs
來源:
AuthorizationBuilder.cs
來源:
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>

將用來建置後援原則的委派。

傳回

產生器。

適用於