AssertionRequirement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>>
调用用于处理此要求的函数。