ClaimsPrincipal.AddIdentity(ClaimsIdentity) ClaimsPrincipal.AddIdentity(ClaimsIdentity) ClaimsPrincipal.AddIdentity(ClaimsIdentity) ClaimsPrincipal.AddIdentity(ClaimsIdentity) Method

Definition

Adds the specified claims identity to this claims principal.

public:
 virtual void AddIdentity(System::Security::Claims::ClaimsIdentity ^ identity);
[System.Security.SecurityCritical]
public virtual void AddIdentity (System.Security.Claims.ClaimsIdentity identity);
abstract member AddIdentity : System.Security.Claims.ClaimsIdentity -> unit
override this.AddIdentity : System.Security.Claims.ClaimsIdentity -> unit
Public Overridable Sub AddIdentity (identity As ClaimsIdentity)

Parameters

identity
ClaimsIdentity ClaimsIdentity ClaimsIdentity ClaimsIdentity

The claims identity to add.

Exceptions

Remarks

The identity is added to the Identities collection.

Security

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

Applies to