Search Results for

    Show / Hide Table of Contents
    View Source

    Class Member

    Represents a Member object

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    TreeEntityBase
    ContentBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class Member : ContentBase, IMember, IContentBase, IUmbracoEntity, ITreeEntity, IRememberBeingDirty, ICanBeDirty, IMembershipUser, IEntity, IDeepCloneable, IHaveAdditionalData

    Constructors

    View Source

    Member(String, String, String, String, IMemberType)

    Constructor for creating a Member object

    Declaration
    public Member(string name, string email, string username, string rawPasswordValue, IMemberType contentType)
    Parameters
    Type Name Description
    System.String name
    System.String email
    System.String username
    System.String rawPasswordValue

    The password value passed in to this parameter should be the encoded/encrypted/hashed format of the member's password

    IMemberType contentType
    View Source

    Member(String, String, String, String, IMemberType, Boolean)

    Initializes a new instance of the Member class. Constructor for creating a Member object

    Declaration
    public Member(string name, string email, string username, string rawPasswordValue, IMemberType contentType, bool isApproved)
    Parameters
    Type Name Description
    System.String name
    System.String email
    System.String username
    System.String rawPasswordValue

    The password value passed in to this parameter should be the encoded/encrypted/hashed format of the member's password

    IMemberType contentType
    System.Boolean isApproved
    View Source

    Member(String, String, String, String, IMemberType, Boolean, Int32)

    Constructor for creating a Member object

    Declaration
    public Member(string name, string email, string username, string rawPasswordValue, IMemberType contentType, bool isApproved, int userId)
    Parameters
    Type Name Description
    System.String name
    System.String email
    System.String username
    System.String rawPasswordValue

    The password value passed in to this parameter should be the encoded/encrypted/hashed format of the member's password

    IMemberType contentType
    System.Boolean isApproved
    System.Int32 userId
    View Source

    Member(String, String, String, IMemberType, Boolean)

    Initializes a new instance of the Member class. Constructor for creating a Member object

    Declaration
    public Member(string name, string email, string username, IMemberType contentType, bool isApproved = true)
    Parameters
    Type Name Description
    System.String name
    System.String email
    System.String username
    IMemberType contentType
    System.Boolean isApproved
    View Source

    Member(String, String, String, IMemberType, Int32, Boolean)

    Initializes a new instance of the Member class. Constructor for creating a Member object

    Declaration
    public Member(string name, string email, string username, IMemberType contentType, int userId, bool isApproved = true)
    Parameters
    Type Name Description
    System.String name
    System.String email
    System.String username
    IMemberType contentType
    System.Int32 userId
    System.Boolean isApproved
    View Source

    Member(String, IMemberType)

    Initializes a new instance of the Member class. Constructor for creating a Member object

    Declaration
    public Member(string name, IMemberType contentType)
    Parameters
    Type Name Description
    System.String name

    Name of the content

    IMemberType contentType

    ContentType for the current Content object

    View Source

    Member(IMemberType)

    Initializes a new instance of the Member class. Constructor for creating an empty Member object

    Declaration
    public Member(IMemberType contentType)
    Parameters
    Type Name Description
    IMemberType contentType

    ContentType for the current Content object

    Properties

    View Source

    AdditionalData

    Declaration
    [DataMember]
    public IDictionary<string, object> AdditionalData { get; }
    Property Value
    Type Description
    IDictionary<System.String, System.Object>
    View Source

    BoolPropertyValue

    Internal/Experimental - only used for mapping queries.

    Declaration
    [IgnoreDataMember]
    public bool BoolPropertyValue { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Adding these to have first level properties instead of the Properties collection.

    View Source

    Comments

    Gets or set the comments for the member

    Declaration
    [DataMember]
    public string Comments { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Alias: umbracoMemberComments Part of the standard properties collection.

    View Source

    ContentTypeAlias

    String alias of the default ContentType

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

    DateTimePropertyValue

    Internal/Experimental - only used for mapping queries.

    Declaration
    [IgnoreDataMember]
    public DateTime DateTimePropertyValue { get; set; }
    Property Value
    Type Description
    DateTime
    Remarks

    Adding these to have first level properties instead of the Properties collection.

    View Source

    Email

    Gets or sets the 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

    Gets or sets the number of failed password attempts. This is the number of times the password was entered incorrectly upon login.

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

    Alias: umbracoMemberFailedPasswordAttempts Part of the standard properties collection.

    View Source

    Groups

    Gets or sets the Groups that Member is part of

    Declaration
    [DataMember]
    public IEnumerable<string>? Groups { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    View Source

    HasAdditionalData

    Determines whether this entity has additional data.

    Declaration
    [IgnoreDataMember]
    public bool HasAdditionalData { get; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Use this property to check for additional data without getting AdditionalData, to avoid allocating.

    View Source

    IntegerPropertyValue

    Internal/Experimental - only used for mapping queries.

    Declaration
    [IgnoreDataMember]
    public int IntegerPropertyValue { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    Adding these to have first level properties instead of the Properties collection.

    View Source

    IsApproved

    Gets or sets a value indicating whether the Member is approved

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

    IsLockedOut

    Gets or sets a boolean indicating whether the Member is locked out

    Declaration
    [DataMember]
    public bool IsLockedOut { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Alias: umbracoMemberLockedOut Part of the standard properties collection.

    View Source

    LastLockoutDate

    Gets or sets the date for when Member was locked out

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

    Alias: umbracoMemberLastLockoutDate Part of the standard properties collection.

    View Source

    LastLoginDate

    Gets or sets the date for last login

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

    Alias: umbracoMemberLastLogin Part of the standard properties collection.

    View Source

    LastPasswordChangeDate

    Gest or sets the date for last password change

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

    Alias: umbracoMemberLastPasswordChangeDate Part of the standard properties collection.

    View Source

    LongStringPropertyValue

    Internal/Experimental - only used for mapping queries.

    Declaration
    [IgnoreDataMember]
    public string LongStringPropertyValue { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Adding these to have first level properties instead of the Properties collection.

    View Source

    PasswordConfiguration

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

    PropertyTypeAlias

    Internal/Experimental - only used for mapping queries.

    Declaration
    [IgnoreDataMember]
    public string PropertyTypeAlias { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Adding these to have first level properties instead of the Properties collection.

    View Source

    RawPasswordValue

    Gets or sets the raw password value

    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

    ShortStringPropertyValue

    Internal/Experimental - only used for mapping queries.

    Declaration
    [IgnoreDataMember]
    public string ShortStringPropertyValue { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Adding these to have first level properties instead of the Properties collection.

    View Source

    Username

    Gets or sets the Username

    Declaration
    [DataMember]
    public string Username { get; set; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Member(String, String, String, String, IMemberType)
      • Member(String, String, String, String, IMemberType, Boolean)
      • Member(String, String, String, String, IMemberType, Boolean, Int32)
      • Member(String, String, String, IMemberType, Boolean)
      • Member(String, String, String, IMemberType, Int32, Boolean)
      • Member(String, IMemberType)
      • Member(IMemberType)
    • Properties
      • AdditionalData
      • BoolPropertyValue
      • Comments
      • ContentTypeAlias
      • DateTimePropertyValue
      • Email
      • EmailConfirmedDate
      • FailedPasswordAttempts
      • Groups
      • HasAdditionalData
      • IntegerPropertyValue
      • IsApproved
      • IsLockedOut
      • LastLockoutDate
      • LastLoginDate
      • LastPasswordChangeDate
      • LongStringPropertyValue
      • PasswordConfiguration
      • PropertyTypeAlias
      • RawPasswordValue
      • SecurityStamp
      • ShortStringPropertyValue
      • Username
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX