共用方式為


AssertionRequirement 建構函式

定義

多載

AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>)

建立 AssertionRequirement 的新執行個體。

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

建立 AssertionRequirement 的新執行個體。

AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>)

來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
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>>)

來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
AssertionRequirement.cs
來源:
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>>

呼叫以處理此需求的函式。

適用於