AuthorizationPolicyBuilder.RequireAssertion Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.