ClaimsPrincipal::AddIdentity Method (ClaimsIdentity^)

.NET Framework (current version)
 

Adds the specified claims identity to this claims principal.

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
virtual void AddIdentity(
	ClaimsIdentity^ identity
)

Parameters

identity
Type: System.Security.Claims::ClaimsIdentity^

The claims identity to add.

Exception Condition
ArgumentNullException

identity is null.

The identity is added to the Identities collection.

SecurityCriticalAttribute

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show: