Partilhar via


AuthorizationBuilder.AddFallbackPolicy Método

Definição

Sobrecargas

AddFallbackPolicy(String, AuthorizationPolicy)

Adicione uma política criada a partir de um delegado com o nome fornecido e usada como FallbackPolicy.

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

Adicione uma política criada a partir de um delegado com o nome fornecido e usada como FallbackPolicy.

AddFallbackPolicy(String, AuthorizationPolicy)

Origem:
AuthorizationBuilder.cs
Origem:
AuthorizationBuilder.cs
Origem:
AuthorizationBuilder.cs

Adicione uma política criada a partir de um delegado com o nome fornecido e usada como 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

Parâmetros

name
String

O nome do FallbackPolicy.

Retornos

O construtor.

Aplica-se a

AddFallbackPolicy(String, Action<AuthorizationPolicyBuilder>)

Origem:
AuthorizationBuilder.cs
Origem:
AuthorizationBuilder.cs
Origem:
AuthorizationBuilder.cs

Adicione uma política criada a partir de um delegado com o nome fornecido e usada como 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

Parâmetros

name
String

O nome da política de Fallback.

configurePolicy
Action<AuthorizationPolicyBuilder>

O delegado que será usado para criar a política de Fallback.

Retornos

O construtor.

Aplica-se a