Share via


ClaimsAuthorizationRequirement(String, IEnumerable<String>) Constructor

Definition

Creates a new instance of ClaimsAuthorizationRequirement.

public:
 ClaimsAuthorizationRequirement(System::String ^ claimType, System::Collections::Generic::IEnumerable<System::String ^> ^ allowedValues);
public ClaimsAuthorizationRequirement (string claimType, System.Collections.Generic.IEnumerable<string> allowedValues);
public ClaimsAuthorizationRequirement (string claimType, System.Collections.Generic.IEnumerable<string>? allowedValues);
new Microsoft.AspNetCore.Authorization.Infrastructure.ClaimsAuthorizationRequirement : string * seq<string> -> Microsoft.AspNetCore.Authorization.Infrastructure.ClaimsAuthorizationRequirement
Public Sub New (claimType As String, allowedValues As IEnumerable(Of String))

Parameters

claimType
String

The claim type that must be present.

allowedValues
IEnumerable<String>

Optional list of claim values. If specified, the claim must match one or more of these values.

Applies to