Condividi tramite


AuthorizationPolicyBuilder.RequireAssertion Metodo

Definizione

Overload

RequireAssertion(Func<AuthorizationHandlerContext,Task<Boolean>>)

Aggiunge un AssertionRequirement oggetto all'istanza corrente.

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Aggiunge un AssertionRequirement oggetto all'istanza corrente.

RequireAssertion(Func<AuthorizationHandlerContext,Task<Boolean>>)

Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs

Aggiunge un AssertionRequirement oggetto all'istanza corrente.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireAssertion(Func<Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^, System::Threading::Tasks::Task<bool> ^> ^ handler);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAssertion (Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext,System.Threading.Tasks.Task<bool>> handler);
member this.RequireAssertion : Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext, System.Threading.Tasks.Task<bool>> -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireAssertion (handler As Func(Of AuthorizationHandlerContext, Task(Of Boolean))) As AuthorizationPolicyBuilder

Parametri

handler
Func<AuthorizationHandlerContext,Task<Boolean>>

Gestore da valutare durante l'autorizzazione.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs
Origine:
AuthorizationPolicyBuilder.cs

Aggiunge un AssertionRequirement oggetto all'istanza corrente.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireAssertion(Func<Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^, bool> ^ handler);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAssertion (Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext,bool> handler);
member this.RequireAssertion : Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext, bool> -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireAssertion (handler As Func(Of AuthorizationHandlerContext, Boolean)) As AuthorizationPolicyBuilder

Parametri

handler
Func<AuthorizationHandlerContext,Boolean>

Gestore da valutare durante l'autorizzazione.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a