Uredi

Deli z drugimi prek


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);
public virtual void AddIdentity (System.Security.Claims.ClaimsIdentity identity);
[<System.Security.SecurityCritical>]
abstract member AddIdentity : System.Security.Claims.ClaimsIdentity -> unit
override this.AddIdentity : System.Security.Claims.ClaimsIdentity -> unit
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

The claims identity to add.

Attributes

Exceptions

identity is null.

Remarks

The identity is added to the Identities collection.

Applies to