다음을 통해 공유


AuthorizationPolicyBuilder.RequireClaim 메서드

정의

오버로드

RequireClaim(String)

ClaimsAuthorizationRequirement 현재 사용자에게 지정된 클레임이 있어야 하는 현재 instance 를 추가합니다.

RequireClaim(String, IEnumerable<String>)

ClaimsAuthorizationRequirement 현재 사용자에게 지정된 클레임이 있고 클레임 값이 허용되는 값 중 하나여야 하는 현재 instance 를 추가합니다.

RequireClaim(String, String[])

ClaimsAuthorizationRequirement 현재 사용자에게 지정된 클레임이 있고 클레임 값이 허용되는 값 중 하나여야 하는 현재 instance 를 추가합니다.

RequireClaim(String)

Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs

ClaimsAuthorizationRequirement 현재 사용자에게 지정된 클레임이 있어야 하는 현재 instance 를 추가합니다.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireClaim(System::String ^ claimType);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim (string claimType);
member this.RequireClaim : string -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireClaim (claimType As String) As AuthorizationPolicyBuilder

매개 변수

claimType
String

클레임 값에 대한 제한 없이 필요한 클레임 유형입니다.

반환

작업이 완료된 후 이 인스턴스에 대한 참조입니다.

적용 대상

RequireClaim(String, IEnumerable<String>)

Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs

ClaimsAuthorizationRequirement 현재 사용자에게 지정된 클레임이 있고 클레임 값이 허용되는 값 중 하나여야 하는 현재 instance 를 추가합니다.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireClaim(System::String ^ claimType, System::Collections::Generic::IEnumerable<System::String ^> ^ requiredValues);
public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireClaim(System::String ^ claimType, System::Collections::Generic::IEnumerable<System::String ^> ^ allowedValues);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim (string claimType, System.Collections.Generic.IEnumerable<string> requiredValues);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim (string claimType, System.Collections.Generic.IEnumerable<string> allowedValues);
member this.RequireClaim : string * seq<string> -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
member this.RequireClaim : string * seq<string> -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireClaim (claimType As String, requiredValues As IEnumerable(Of String)) As AuthorizationPolicyBuilder
Public Function RequireClaim (claimType As String, allowedValues As IEnumerable(Of String)) As AuthorizationPolicyBuilder

매개 변수

claimType
String

필요한 클레임 유형입니다.

requiredValuesallowedValues
IEnumerable<String>

평가가 성공하려면 클레임이 하나 이상의 값을 처리해야 합니다.

반환

작업이 완료된 후 이 인스턴스에 대한 참조입니다.

적용 대상

RequireClaim(String, String[])

Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs
Source:
AuthorizationPolicyBuilder.cs

ClaimsAuthorizationRequirement 현재 사용자에게 지정된 클레임이 있고 클레임 값이 허용되는 값 중 하나여야 하는 현재 instance 를 추가합니다.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireClaim(System::String ^ claimType, ... cli::array <System::String ^> ^ requiredValues);
public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireClaim(System::String ^ claimType, ... cli::array <System::String ^> ^ allowedValues);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim (string claimType, params string[] requiredValues);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim (string claimType, params string[] allowedValues);
member this.RequireClaim : string * string[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
member this.RequireClaim : string * string[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireClaim (claimType As String, ParamArray requiredValues As String()) As AuthorizationPolicyBuilder
Public Function RequireClaim (claimType As String, ParamArray allowedValues As String()) As AuthorizationPolicyBuilder

매개 변수

claimType
String

필요한 클레임 유형입니다.

requiredValuesallowedValues
String[]

평가가 성공하려면 클레임이 하나 이상의 값을 처리해야 합니다.

반환

작업이 완료된 후 이 인스턴스에 대한 참조입니다.

적용 대상