Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUser

    Defines the interface for a User

    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IUser : IMembershipUser, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
    Remarks

    Will be left internal until a proper Membership implementation is part of the roadmap

    Properties

    View Source

    AllowedSections

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

    Avatar

    Will hold the media file system relative path of the users custom avatar if they uploaded one

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

    Groups

    Gets the groups that user is part of

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

    InvitedDate

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

    Kind

    The type of user.

    Declaration
    UserKind Kind { get; set; }
    Property Value
    Type Description
    UserKind
    View Source

    Language

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

    Name

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

    ProfileData

    Exposes the basic profile data

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

    SessionTimeout

    Declaration
    int SessionTimeout { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    StartContentIds

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

    StartMediaIds

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

    UserState

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

    Methods

    View Source

    AddGroup(IReadOnlyUserGroup)

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

    ClearGroups()

    Declaration
    void ClearGroups()
    View Source

    RemoveGroup(String)

    Declaration
    void RemoveGroup(string group)
    Parameters
    Type Name Description
    System.String group
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • AllowedSections
      • Avatar
      • Groups
      • InvitedDate
      • Kind
      • Language
      • Name
      • ProfileData
      • SessionTimeout
      • StartContentIds
      • StartMediaIds
      • UserState
    • Methods
      • AddGroup(IReadOnlyUserGroup)
      • ClearGroups()
      • RemoveGroup(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX