Share via


IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin> Class

Definition

Represents a user in the identity system

generic <typename TKey, typename TUserClaim, typename TUserRole, typename TUserLogin>
 where TKey : IEquatable<TKey>public ref class IdentityUser
public class IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin> where TKey : IEquatable<TKey>
type IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin (requires 'Key :> IEquatable<'Key>)> = class
Public Class IdentityUser(Of TKey, TUserClaim, TUserRole, TUserLogin)

Type Parameters

TKey

The type used for the primary key for the user.

TUserClaim

The type representing a claim.

TUserRole

The type representing a user role.

TUserLogin

The type representing a user external login.

Inheritance
IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin>
Derived

Constructors

IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin>()

Initializes a new instance of IdentityUser<TKey>.

IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin>(String)

Initializes a new instance of IdentityUser<TKey>.

Properties

AccessFailedCount

Gets or sets the number of failed login attempts for the current user.

Claims

Navigation property for the claims this user possesses.

ConcurrencyStamp

A random value that must change whenever a user is persisted to the store

Email

Gets or sets the email address for this user.

EmailConfirmed

Gets or sets a flag indicating if a user has confirmed their email address.

Id

Gets or sets the primary key for this user.

LockoutEnabled

Gets or sets a flag indicating if the user could be locked out.

LockoutEnd

Gets or sets the date and time, in UTC, when any user lockout ends.

Logins

Navigation property for this users login accounts.

NormalizedEmail

Gets or sets the normalized email address for this user.

NormalizedUserName

Gets or sets the normalized user name for this user.

PasswordHash

Gets or sets a salted and hashed representation of the password for this user.

PhoneNumber

Gets or sets a telephone number for the user.

PhoneNumberConfirmed

Gets or sets a flag indicating if a user has confirmed their telephone address.

Roles

Navigation property for the roles this user belongs to.

SecurityStamp

A random value that must change whenever a users credentials change (password changed, login removed)

TwoFactorEnabled

Gets or sets a flag indicating if two factor authentication is enabled for this user.

UserName

Gets or sets the user name for this user.

Methods

ToString()

Returns the username for this user.

Applies to