共用方式為


AuthorizationHandlerContext 建構函式

定義

建立 AuthorizationHandlerContext 的新執行個體。

public:
 AuthorizationHandlerContext(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^> ^ requirements, System::Security::Claims::ClaimsPrincipal ^ user, System::Object ^ resource);
public AuthorizationHandlerContext (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> requirements, System.Security.Claims.ClaimsPrincipal user, object resource);
public AuthorizationHandlerContext (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> requirements, System.Security.Claims.ClaimsPrincipal user, object? resource);
new Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext : seq<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> * System.Security.Claims.ClaimsPrincipal * obj -> Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext
Public Sub New (requirements As IEnumerable(Of IAuthorizationRequirement), user As ClaimsPrincipal, resource As Object)

參數

requirements
IEnumerable<IAuthorizationRequirement>

目前授權動作的所有 IAuthorizationRequirement 集合。

user
ClaimsPrincipal

ClaimsPrincipal,表示目前的使用者。

resource
Object

要針對 評估 requirements 的選擇性資源。

適用於