AuthorizationPolicyBuilder.RequireAssertion Método

Definição

Sobrecargas

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

Adiciona um AssertionRequirement à instância atual.

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Adiciona um AssertionRequirement à instância atual.

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

Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs

Adiciona um AssertionRequirement à instância atual.

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>>

O manipulador a ser avaliado durante a autorização.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs
Origem:
AuthorizationPolicyBuilder.cs

Adiciona um AssertionRequirement à instância atual.

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>

O manipulador a ser avaliado durante a autorização.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a