AssertionRequirement 构造函数

定义

重载

AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>)

创建 AssertionRequirement 的新实例。

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

创建 AssertionRequirement 的新实例。

AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>)

Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs

创建 AssertionRequirement 的新实例。

public:
 AssertionRequirement(Func<Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^, bool> ^ handler);
public AssertionRequirement (Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext,bool> handler);
new Microsoft.AspNetCore.Authorization.Infrastructure.AssertionRequirement : Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext, bool> -> Microsoft.AspNetCore.Authorization.Infrastructure.AssertionRequirement
Public Sub New (handler As Func(Of AuthorizationHandlerContext, Boolean))

参数

handler
Func<AuthorizationHandlerContext,Boolean>

调用用于处理此要求的函数。

适用于

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

Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs
Source:
AssertionRequirement.cs

创建 AssertionRequirement 的新实例。

public:
 AssertionRequirement(Func<Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^, System::Threading::Tasks::Task<bool> ^> ^ handler);
public AssertionRequirement (Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext,System.Threading.Tasks.Task<bool>> handler);
new Microsoft.AspNetCore.Authorization.Infrastructure.AssertionRequirement : Func<Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext, System.Threading.Tasks.Task<bool>> -> Microsoft.AspNetCore.Authorization.Infrastructure.AssertionRequirement
Public Sub New (handler As Func(Of AuthorizationHandlerContext, Task(Of Boolean)))

参数

handler
Func<AuthorizationHandlerContext,Task<Boolean>>

调用用于处理此要求的函数。

适用于