Export (0) Print
Expand All

ClaimsPrincipal Constructor (IEnumerable<ClaimsIdentity>)

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

identities is null.

The Identities collection is initialized with the specified identities.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft