ClaimsAuthorizationRequirement(String, IEnumerable<String>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.