AuthorizationBuilder.AddFallbackPolicy Metodo

Definizione

Overload

AddFallbackPolicy(String, AuthorizationPolicy)

Aggiungere un criterio compilato da un delegato con il nome specificato e usato come FallbackPolicy.

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

Aggiungere un criterio compilato da un delegato con il nome specificato e usato come FallbackPolicy.

AddFallbackPolicy(String, AuthorizationPolicy)

Origine:
AuthorizationBuilder.cs
Origine:
AuthorizationBuilder.cs
Origine:
AuthorizationBuilder.cs

Aggiungere un criterio compilato da un delegato con il nome specificato e usato come 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

Parametri

name
String

Nome dell'oggetto FallbackPolicy.

Restituisce

Generatore.

Si applica a

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

Origine:
AuthorizationBuilder.cs
Origine:
AuthorizationBuilder.cs
Origine:
AuthorizationBuilder.cs

Aggiungere un criterio compilato da un delegato con il nome specificato e usato come 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

Parametri

name
String

Nome dei criteri di fallback.

configurePolicy
Action<AuthorizationPolicyBuilder>

Delegato che verrà usato per compilare i criteri di fallback.

Restituisce

Generatore.

Si applica a