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
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.