Search Results for

    Show / Hide Table of Contents
    View Source

    Class User

    Represents a backoffice user

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class User : EntityBase, IUser, IMembershipUser, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty, IProfile

    Constructors

    View Source

    User(GlobalSettings)

    Constructor for creating a new/empty user

    Declaration
    public User(GlobalSettings globalSettings)
    Parameters
    Type Name Description
    GlobalSettings globalSettings
    View Source

    User(GlobalSettings, Int32, String, String, String, String, String, IEnumerable<IReadOnlyUserGroup>, Int32[], Int32[])

    Constructor for creating a new User instance for an existing user

    Declaration
    public User(GlobalSettings globalSettings, int id, string name, string email, string username, string rawPasswordValue, string passwordConfig, IEnumerable<IReadOnlyUserGroup> userGroups, int[] startContentIds, int[] startMediaIds)
    Parameters
    Type Name Description
    GlobalSettings globalSettings
    System.Int32 id
    System.String name
    System.String email
    System.String username
    System.String rawPasswordValue
    System.String passwordConfig
    IEnumerable<IReadOnlyUserGroup> userGroups
    System.Int32[] startContentIds
    System.Int32[] startMediaIds
    View Source

    User(GlobalSettings, String, String, String, String)

    Constructor for creating a new/empty user

    Declaration
    public User(GlobalSettings globalSettings, string name, string email, string username, string rawPasswordValue)
    Parameters
    Type Name Description
    GlobalSettings globalSettings
    System.String name
    System.String email
    System.String username
    System.String rawPasswordValue

    Properties

    View Source

    AllowedSections

    Declaration
    public IEnumerable<string> AllowedSections { get; }
    Property Value
    Type Description
    IEnumerable<System.String>
    View Source

    Avatar

    Declaration
    [DataMember]
    public string Avatar { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Comments

    Declaration
    [IgnoreDataMember]
    public string Comments { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Email

    Declaration
    [DataMember]
    public string Email { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    EmailConfirmedDate

    Declaration
    [DataMember]
    public DateTime? EmailConfirmedDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    FailedPasswordAttempts

    Declaration
    [IgnoreDataMember]
    public int FailedPasswordAttempts { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Groups

    Gets the groups that user is part of

    Declaration
    [DataMember]
    public IEnumerable<IReadOnlyUserGroup> Groups { get; }
    Property Value
    Type Description
    IEnumerable<IReadOnlyUserGroup>
    View Source

    InvitedDate

    Declaration
    [DataMember]
    public DateTime? InvitedDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    IsApproved

    Declaration
    [DataMember]
    public bool IsApproved { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    IsLockedOut

    Declaration
    [IgnoreDataMember]
    public bool IsLockedOut { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Language

    Declaration
    [DataMember]
    public string Language { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    LastLockoutDate

    Declaration
    [IgnoreDataMember]
    public DateTime? LastLockoutDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    LastLoginDate

    Declaration
    [IgnoreDataMember]
    public DateTime? LastLoginDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    LastPasswordChangeDate

    Declaration
    [IgnoreDataMember]
    public DateTime? LastPasswordChangeDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    Name

    Declaration
    [DataMember]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    PasswordConfiguration

    Declaration
    [IgnoreDataMember]
    public string PasswordConfiguration { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    ProfileData

    Declaration
    public IProfile ProfileData { get; }
    Property Value
    Type Description
    IProfile
    View Source

    RawPasswordValue

    Declaration
    [IgnoreDataMember]
    public string RawPasswordValue { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    SecurityStamp

    The security stamp used by ASP.Net identity

    Declaration
    [IgnoreDataMember]
    public string SecurityStamp { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    SessionTimeout

    Gets or sets the session timeout.

    Declaration
    [DataMember]
    public int SessionTimeout { get; set; }
    Property Value
    Type Description
    System.Int32

    The session timeout.

    View Source

    StartContentIds

    Gets or sets the start content id.

    Declaration
    [DataMember]
    public int[] StartContentIds { get; set; }
    Property Value
    Type Description
    System.Int32[]

    The start content id.

    View Source

    StartMediaIds

    Gets or sets the start media id.

    Declaration
    [DataMember]
    public int[] StartMediaIds { get; set; }
    Property Value
    Type Description
    System.Int32[]

    The start media id.

    View Source

    TourData

    A Json blob stored for recording tour data for a user

    Declaration
    [DataMember]
    public string TourData { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Username

    Declaration
    [DataMember]
    public string Username { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    UserState

    Declaration
    public UserState UserState { get; }
    Property Value
    Type Description
    UserState

    Methods

    View Source

    AddGroup(IReadOnlyUserGroup)

    Declaration
    public void AddGroup(IReadOnlyUserGroup group)
    Parameters
    Type Name Description
    IReadOnlyUserGroup group
    View Source

    ClearGroups()

    Declaration
    public void ClearGroups()
    View Source

    PerformDeepClone(Object)

    Declaration
    protected override void PerformDeepClone(object clone)
    Parameters
    Type Name Description
    System.Object clone
    View Source

    RemoveGroup(String)

    Declaration
    public void RemoveGroup(string group)
    Parameters
    Type Name Description
    System.String group
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • User(GlobalSettings)
      • User(GlobalSettings, Int32, String, String, String, String, String, IEnumerable<IReadOnlyUserGroup>, Int32[], Int32[])
      • User(GlobalSettings, String, String, String, String)
    • Properties
      • AllowedSections
      • Avatar
      • Comments
      • Email
      • EmailConfirmedDate
      • FailedPasswordAttempts
      • Groups
      • InvitedDate
      • IsApproved
      • IsLockedOut
      • Language
      • LastLockoutDate
      • LastLoginDate
      • LastPasswordChangeDate
      • Name
      • PasswordConfiguration
      • ProfileData
      • RawPasswordValue
      • SecurityStamp
      • SessionTimeout
      • StartContentIds
      • StartMediaIds
      • TourData
      • Username
      • UserState
    • Methods
      • AddGroup(IReadOnlyUserGroup)
      • ClearGroups()
      • PerformDeepClone(Object)
      • RemoveGroup(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX