ClaimsPrincipal Constructor (IEnumerable<ClaimsIdentity>)

.NET Framework (current version)
 

Initializes a new instance of the ClaimsPrincipal class using the specified claims identities.

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

public ClaimsPrincipal(
	IEnumerable<ClaimsIdentity> identities
)

Parameters

identities
Type: System.Collections.Generic.IEnumerable<ClaimsIdentity>

The identities from which to initialize the new claims principal.

Exception Condition
ArgumentNullException

identities is null.

The Identities collection is initialized with the specified identities.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show: