DefaultClaimSet Constructor (Claim[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

Namespace:   System.IdentityModel.Claims
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public DefaultClaimSet(
	params Claim[] claims


Type: System.IdentityModel.Claims.Claim[]

An array of Claim that represents the claims to be added to this claim set.

Exception Condition

claims is null.

Use this constructor when the ClaimSet is self-issued. For example, a claim set for an anonymous user is self-issued.

This constructor calls the Initialize method.

.NET Framework
Available since 3.0
Return to top