Class UmbracoIdentityUser
Abstract class for use in Umbraco Identity for users and members
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public abstract class UmbracoIdentityUser : IdentityUser
Constructors
UmbracoIdentityUser()
Declaration
public UmbracoIdentityUser()
Properties
AccessFailedCount
Gets or sets the value to record failures for the purposes of lockout
Declaration
public override int AccessFailedCount { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
BeingDirty
Declaration
protected BeingDirty BeingDirty { get; }
Property Value
| Type |
Description |
| BeingDirty |
|
Claims
Gets navigation the user claims collection
Declaration
public ICollection<IdentityUserClaim<string>> Claims { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.ICollection<IdentityUserClaim<System.String>> |
|
ConcurrencyStamp
Declaration
public override string ConcurrencyStamp { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Email
Declaration
public override string Email { get; set; }
Property Value
| Type |
Description |
| System.String |
|
EmailConfirmed
Gets or sets a value indicating whether the email is confirmed, default is false
Declaration
public override bool EmailConfirmed { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
HasIdentity
Gets or sets a value indicating whether returns an Id has been set on this object this will be false if the object is new and not persisted to the database
Declaration
public bool HasIdentity { get; protected set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Id
Gets or sets user ID (Primary Key)
Declaration
public override string Id { get; set; }
Property Value
| Type |
Description |
| System.String |
|
IsApproved
Gets or sets a value indicating whether the IUser IsApproved
Declaration
public bool IsApproved { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsLockedOut
Gets a value indicating whether the user is locked out based on the user's lockout end date
Declaration
public bool IsLockedOut { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
LastLoginDateUtc
Gets or sets last login date
Declaration
public DateTime? LastLoginDateUtc { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTime> |
|
LastPasswordChangeDateUtc
Gets or sets dateTime in UTC when the password was last changed.
Declaration
public DateTime? LastPasswordChangeDateUtc { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTime> |
|
LockoutEnabled
Gets or sets a value indicating whether is lockout enabled for this user
Declaration
public override bool LockoutEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Logins
Gets the user logins collection
Declaration
public ICollection<IIdentityUserLogin> Logins { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.ICollection<IIdentityUserLogin> |
|
LoginTokens
Gets the external login tokens collection
Declaration
public ICollection<IIdentityUserToken> LoginTokens { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.ICollection<IIdentityUserToken> |
|
Name
Gets or sets the user's real name
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
PasswordConfig
Gets or sets the password config
Declaration
public string PasswordConfig { get; set; }
Property Value
| Type |
Description |
| System.String |
|
PasswordHash
Gets or sets the salted/hashed form of the user password
Declaration
public override string PasswordHash { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Roles
Gets or sets the user roles collection
Declaration
public ICollection<IdentityUserRole<string>> Roles { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.ICollection<IdentityUserRole<System.String>> |
|
UserName
Declaration
public override string UserName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
AddRole(String)
Declaration
public void AddRole(string role)
Parameters
| Type |
Name |
Description |
| System.String |
role |
The role to add
|
DisableChangeTracking()
Disables change tracking.
Declaration
public void DisableChangeTracking()
EnableChangeTracking()
Declaration
public void EnableChangeTracking()
GetDirtyProperties()
Declaration
public IEnumerable<string> GetDirtyProperties()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
|
GetWereDirtyProperties()
Declaration
public IEnumerable<string> GetWereDirtyProperties()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
|
IsDirty()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
IsPropertyDirty(String)
Declaration
public bool IsPropertyDirty(string propName)
Parameters
| Type |
Name |
Description |
| System.String |
propName |
|
Returns
| Type |
Description |
| System.Boolean |
|
ResetDirtyProperties()
Declaration
public void ResetDirtyProperties()
ResetDirtyProperties(Boolean)
Declaration
public void ResetDirtyProperties(bool rememberDirty)
Parameters
| Type |
Name |
Description |
| System.Boolean |
rememberDirty |
|
ResetWereDirtyProperties()
Declaration
public void ResetWereDirtyProperties()
WasDirty()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
WasPropertyDirty(String)
Declaration
public bool WasPropertyDirty(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
Returns
| Type |
Description |
| System.Boolean |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| PropertyChangedEventHandler |
|