ClaimsPrincipal.AddIdentities Method (IEnumerable<ClaimsIdentity>)

.NET Framework (current version)
 
System_CAPS_noteNote

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

Adds the specified claims identities to this claims principal.

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

[<SecurityCriticalAttribute>]
abstract AddIdentities : 
        identities:IEnumerable<ClaimsIdentity> -> unit
[<SecurityCriticalAttribute>]
override AddIdentities : 
        identities:IEnumerable<ClaimsIdentity> -> unit

Parameters

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

The claims identities to add.

Exception Condition
ArgumentNullException

identities is null.

The identities are added to the Identities collection.

SecurityCriticalAttribute

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

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