ClaimsPrincipal.AddIdentities(IEnumerable<ClaimsIdentity>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified claims identities to this claims principal.
public:
virtual void AddIdentities(System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^ identities);
[System.Security.SecurityCritical]
public virtual void AddIdentities (System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> identities);
public virtual void AddIdentities (System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> identities);
[<System.Security.SecurityCritical>]
abstract member AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
override this.AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
abstract member AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
override this.AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
Public Overridable Sub AddIdentities (identities As IEnumerable(Of ClaimsIdentity))
Parameters
- identities
- IEnumerable<ClaimsIdentity>
The claims identities to add.
- Attributes
Exceptions
identities
is null
.
Remarks
The identities are added to the Identities collection.
Applies to
Col·laboreu amb nosaltres a GitHub
La font d'aquest contingut es pot trobar al GitHub, on també podeu crear i revisar problemes i sol·licituds d'extracció. Per obtenir més informació, consulteu la nostra guia per a col·laboradors.