Compartir a través de


AuthorizationPolicyBuilder.RequireAssertion Método

Definición

Sobrecargas

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

Agrega un AssertionRequirement objeto a la instancia actual.

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Agrega un AssertionRequirement objeto a la instancia actual.

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

Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs

Agrega un AssertionRequirement objeto a la instancia actual.

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

Parámetros

handler
Func<AuthorizationHandlerContext,Task<Boolean>>

Controlador que se va a evaluar durante la autorización.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs

Agrega un AssertionRequirement objeto a la instancia actual.

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

Parámetros

handler
Func<AuthorizationHandlerContext,Boolean>

Controlador que se va a evaluar durante la autorización.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a