AssertionRequirement 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>) |
建立 AssertionRequirement 的新執行個體。 |
AssertionRequirement(Func<AuthorizationHandlerContext,Task<Boolean>>) |
建立 AssertionRequirement 的新執行個體。 |
AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>)
建立 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 的新執行個體。
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>>
呼叫以處理此需求的函式。