Compartilhar via


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

Definição

Chamado para criar uma nova instância de um 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)

Parâmetros

user
TUser

O usuário associado.

claim
Claim

A declaração associada.

Retornos

Aplica-se a