Sdílet prostřednictvím


AuthorizationPolicyBuilder.RequireAssertion Metoda

Definice

Přetížení

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

Přidá do AssertionRequirement aktuální instance .

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Přidá do AssertionRequirement aktuální instance .

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

Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs

Přidá do AssertionRequirement aktuální instance .

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

Parametry

handler
Func<AuthorizationHandlerContext,Task<Boolean>>

Obslužná rutina, která se má vyhodnotit během autorizace.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro

RequireAssertion(Func<AuthorizationHandlerContext,Boolean>)

Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs
Zdroj:
AuthorizationPolicyBuilder.cs

Přidá do AssertionRequirement aktuální instance .

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

Parametry

handler
Func<AuthorizationHandlerContext,Boolean>

Obslužná rutina, která se má vyhodnotit během autorizace.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro