Class Member
Represents a Member object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class Member : ContentBase, IMember, IContentBase, IUmbracoEntity, ITreeEntity, IRememberBeingDirty, ICanBeDirty, IMembershipUser, IEntity, IDeepCloneable
Constructors
View SourceMember(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 |
|---|---|---|
| string | name | |
| string | ||
| string | username | |
| string | rawPasswordValue | The password value passed in to this parameter should be the encoded/encrypted/hashed format of the member's password |
| IMemberType | contentType |
Member(string, string, string, string, IMemberType, bool)
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 |
|---|---|---|
| string | name | |
| string | ||
| string | username | |
| string | rawPasswordValue | The password value passed in to this parameter should be the encoded/encrypted/hashed format of the member's password |
| IMemberType | contentType | |
| bool | isApproved |
Member(string, string, string, string, IMemberType, bool, int)
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 |
|---|---|---|
| string | name | |
| string | ||
| string | username | |
| string | rawPasswordValue | The password value passed in to this parameter should be the encoded/encrypted/hashed format of the member's password |
| IMemberType | contentType | |
| bool | isApproved | |
| int | userId |
Member(string, string, string, IMemberType, bool)
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 |
|---|---|---|
| string | name | |
| string | ||
| string | username | |
| IMemberType | contentType | |
| bool | isApproved |
Member(string, string, string, IMemberType, int, bool)
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 |
|---|---|---|
| string | name | |
| string | ||
| string | username | |
| IMemberType | contentType | |
| int | userId | |
| bool | isApproved |
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 |
|---|---|---|
| string | name | Name of the content |
| IMemberType | contentType | ContentType for the current Content object |
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 SourceBoolPropertyValue
Internal/Experimental - only used for mapping queries.
Declaration
[IgnoreDataMember]
public bool BoolPropertyValue { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Adding these to have first level properties instead of the Properties collection.
Comments
Gets or set the comments for the member
Declaration
[DataMember]
public string? Comments { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Alias: umbracoMemberComments Part of the standard properties collection.
ContentTypeAlias
String alias of the default ContentType
Declaration
[DataMember]
public virtual string ContentTypeAlias { get; }
Property Value
| Type | Description |
|---|---|
| string |
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.
Gets or sets the Email
Declaration
[DataMember]
public string Email { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EmailConfirmedDate
Declaration
[DataMember]
public DateTime? EmailConfirmedDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
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 |
|---|---|
| int |
Remarks
Alias: umbracoMemberFailedPasswordAttempts Part of the standard properties collection.
Groups
Gets or sets the Groups that Member is part of
Declaration
[DataMember]
public IEnumerable<string>? Groups { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
IntegerPropertyValue
Internal/Experimental - only used for mapping queries.
Declaration
[IgnoreDataMember]
public int IntegerPropertyValue { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Adding these to have first level properties instead of the Properties collection.
IsApproved
Gets or sets a value indicating whether the Member is approved
Declaration
[DataMember]
public bool IsApproved { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsLockedOut
Gets or sets a boolean indicating whether the Member is locked out
Declaration
[DataMember]
public bool IsLockedOut { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Alias: umbracoMemberLockedOut Part of the standard properties collection.
LastLockoutDate
Gets or sets the date for when Member was locked out
Declaration
[DataMember]
public DateTime? LastLockoutDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Remarks
Alias: umbracoMemberLastLockoutDate Part of the standard properties collection.
LastLoginDate
Gets or sets the date for last login
Declaration
[DataMember]
public DateTime? LastLoginDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Remarks
Alias: umbracoMemberLastLogin Part of the standard properties collection.
LastPasswordChangeDate
Gest or sets the date for last password change
Declaration
[DataMember]
public DateTime? LastPasswordChangeDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Remarks
Alias: umbracoMemberLastPasswordChangeDate Part of the standard properties collection.
LongStringPropertyValue
Internal/Experimental - only used for mapping queries.
Declaration
[IgnoreDataMember]
public string? LongStringPropertyValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Adding these to have first level properties instead of the Properties collection.
PasswordConfiguration
The user's specific password config (i.e. algorithm type, etc...)
Declaration
[IgnoreDataMember]
public string? PasswordConfiguration { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PropertyTypeAlias
Internal/Experimental - only used for mapping queries.
Declaration
[IgnoreDataMember]
public string? PropertyTypeAlias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Adding these to have first level properties instead of the Properties collection.
RawPasswordValue
Gets or sets the raw password value
Declaration
[IgnoreDataMember]
public string? RawPasswordValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SecurityStamp
The security stamp used by ASP.Net identity
Declaration
[IgnoreDataMember]
public string? SecurityStamp { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ShortStringPropertyValue
Internal/Experimental - only used for mapping queries.
Declaration
[IgnoreDataMember]
public string? ShortStringPropertyValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Adding these to have first level properties instead of the Properties collection.
Username
Gets or sets the Username
Declaration
[DataMember]
public string Username { get; set; }
Property Value
| Type | Description |
|---|---|
| string |