다음을 통해 공유


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 선택적 리소스입니다.

적용 대상