Class Member
Represents a Member object
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 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 |
---|---|---|
System.String | name | |
System.String | ||
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 |
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 | ||
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 |
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 | ||
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 |
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 | ||
System.String | username | |
IMemberType | contentType | |
System.Boolean | isApproved |
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 | ||
System.String | username | |
IMemberType | contentType | |
System.Int32 | userId | |
System.Boolean | 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 |
---|---|---|
System.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 SourceAdditionalData
Declaration
[DataMember]
public IDictionary<string, object> AdditionalData { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.Object> |
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.
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.
ContentTypeAlias
String alias of the default ContentType
Declaration
[DataMember]
public virtual string ContentTypeAlias { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |
EmailConfirmedDate
Declaration
[DataMember]
public DateTime? EmailConfirmedDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<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 |
---|---|
System.Int32 |
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 |
---|---|
System.Nullable<IEnumerable<System.String>> |
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.
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.
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 |
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.
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.
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.
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.
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.
PasswordConfiguration
Declaration
[IgnoreDataMember]
public string PasswordConfiguration { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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.
RawPasswordValue
Gets or sets the raw password value
Declaration
[IgnoreDataMember]
public string RawPasswordValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SecurityStamp
The security stamp used by ASP.Net identity
Declaration
[IgnoreDataMember]
public string SecurityStamp { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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.
Username
Gets or sets the Username
Declaration
[DataMember]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |