Export (0) Print
Expand All

ClaimsPrincipal.AddIdentities Method

.NET Framework 4.5

Adds the specified claims identities to this claims principal.

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

public virtual void AddIdentities(
	IEnumerable<ClaimsIdentity> identities
)

Parameters

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

The claims identities to add.

ExceptionCondition
ArgumentNullException

identities is null.

The identities are added to the Identities collection.

.NET Framework

Supported in: 4.6

  • SecurityCriticalAttribute 

    requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Show:
© 2014 Microsoft