ClaimsPrincipal.AddIdentity(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 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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.