Condividi tramite


AuthorizationBuilder.AddDefaultPolicy Metodo

Definizione

Overload

AddDefaultPolicy(String, AuthorizationPolicy)

Aggiungere un criterio creato da un delegato con il nome specificato e usato come criterio predefinito.

AddDefaultPolicy(String, Action<AuthorizationPolicyBuilder>)

Aggiungere un criterio creato da un delegato con il nome specificato e usato come DefaultPolicy.

AddDefaultPolicy(String, AuthorizationPolicy)

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

Aggiungere un criterio creato da un delegato con il nome specificato e usato come criterio predefinito.

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

Parametri

name
String

Nome del criterio predefinito.

policy
AuthorizationPolicy

Valore predefinito AuthorizationPolicy.>

Restituisce

Generatore.

Si applica a

AddDefaultPolicy(String, Action<AuthorizationPolicyBuilder>)

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

Aggiungere un criterio creato da un delegato con il nome specificato e usato come DefaultPolicy.

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

Parametri

name
String

Nome di DefaultPolicy.

configurePolicy
Action<AuthorizationPolicyBuilder>

Delegato che verrà usato per compilare DefaultPolicy.

Restituisce

Generatore.

Si applica a