Partager via


UserStore<TUser,TRole,TContext,TKey>.CreateUserClaim Méthode

Définition

Appelé pour créer une nouvelle instance d’un IdentityUserClaim<TKey>.

protected:
 override Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserClaim<TKey> ^ CreateUserClaim(TUser user, System::Security::Claims::Claim ^ claim);
protected override Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<TKey> CreateUserClaim (TUser user, System.Security.Claims.Claim claim);
override this.CreateUserClaim : 'User * System.Security.Claims.Claim -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<'Key (requires 'Key :> IEquatable<'Key>)>
Protected Overrides Function CreateUserClaim (user As TUser, claim As Claim) As IdentityUserClaim(Of TKey)

Paramètres

user
TUser

Utilisateur associé.

claim
Claim

Revendication associée.

Retours

S’applique à