Show / Hide Table of Contents

Class UserInfo

Inheritance
object
BaseEntityInfo
UserInfo
Implements
IPropertyAccess
IUserInfo
Inherited Members
BaseEntityInfo.CreatedByUser(int)
BaseEntityInfo.LastModifiedByUser(int)
BaseEntityInfo.FillInternal(IDataReader)
BaseEntityInfo.CloneBaseProperties(BaseEntityInfo, BaseEntityInfo)
BaseEntityInfo.CreatedByUserID
BaseEntityInfo.CreatedOnDate
BaseEntityInfo.LastModifiedByUserID
BaseEntityInfo.LastModifiedOnDate
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Entities.Users
Assembly: DotNetNuke.dll
Syntax
public class UserInfo : BaseEntityInfo, IPropertyAccess, IUserInfo

Constructors

UserInfo()

Declaration
public UserInfo()

Properties

AffiliateID

Declaration
[Browsable(false)]
public int AffiliateID { get; set; }
Property Value
Type Description
int

Cacheability

Declaration
[Browsable(false)]
public CacheLevel Cacheability { get; }
Property Value
Type Description
CacheLevel

DisplayName

Declaration
[SortOrder(3)]
[Required(true)]
[MaxLength(128)]
public string DisplayName { get; set; }
Property Value
Type Description
string

Email

Declaration
[SortOrder(4)]
[MaxLength(256)]
[Required(true)]
[RegularExpressionValidator("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$")]
public string Email { get; set; }
Property Value
Type Description
string

FirstName

Declaration
[SortOrder(1)]
[MaxLength(50)]
public string FirstName { get; set; }
Property Value
Type Description
string

HasAgreedToTerms

Declaration
[Browsable(false)]
public bool HasAgreedToTerms { get; set; }
Property Value
Type Description
bool

HasAgreedToTermsOn

Declaration
[Browsable(false)]
public DateTime HasAgreedToTermsOn { get; set; }
Property Value
Type Description
DateTime

IsAdmin

Declaration
public bool IsAdmin { get; }
Property Value
Type Description
bool

IsDeleted

Declaration
[Browsable(false)]
public bool IsDeleted { get; set; }
Property Value
Type Description
bool

IsSuperUser

Declaration
[Browsable(false)]
public bool IsSuperUser { get; set; }
Property Value
Type Description
bool

LastIPAddress

Declaration
[Browsable(false)]
public string LastIPAddress { get; set; }
Property Value
Type Description
string

LastName

Declaration
[SortOrder(2)]
[MaxLength(50)]
public string LastName { get; set; }
Property Value
Type Description
string

Membership

Declaration
[Browsable(false)]
public UserMembership Membership { get; set; }
Property Value
Type Description
UserMembership

PasswordResetExpiration

Declaration
[Browsable(false)]
public DateTime PasswordResetExpiration { get; set; }
Property Value
Type Description
DateTime

PasswordResetToken

Declaration
[Browsable(false)]
public Guid PasswordResetToken { get; set; }
Property Value
Type Description
Guid

PortalID

Declaration
[Browsable(false)]
public int PortalID { get; set; }
Property Value
Type Description
int

Profile

Declaration
[Browsable(false)]
public UserProfile Profile { get; set; }
Property Value
Type Description
UserProfile

RequestsRemoval

Declaration
[Browsable(false)]
public bool RequestsRemoval { get; set; }
Property Value
Type Description
bool

Roles

Declaration
[Browsable(false)]
public string[] Roles { get; set; }
Property Value
Type Description
string[]

Social

Declaration
[Browsable(false)]
public UserSocial Social { get; }
Property Value
Type Description
UserSocial

UserID

Declaration
[Browsable(false)]
public int UserID { get; set; }
Property Value
Type Description
int

Username

Declaration
[SortOrder(0)]
[MaxLength(100)]
[IsReadOnly(true)]
[Required(true)]
public string Username { get; set; }
Property Value
Type Description
string

VanityUrl

Declaration
public string VanityUrl { get; set; }
Property Value
Type Description
string

Methods

GetProperty(string, string, CultureInfo, UserInfo, Scope, ref bool)

Declaration
public string GetProperty(string propertyName, string format, CultureInfo formatProvider, UserInfo accessingUser, Scope currentScope, ref bool propertyNotFound)
Parameters
Type Name Description
string propertyName
string format
CultureInfo formatProvider
UserInfo accessingUser
Scope currentScope
bool propertyNotFound
Returns
Type Description
string

IsInRole(string)

Declaration
public bool IsInRole(string role)
Parameters
Type Name Description
string role
Returns
Type Description
bool

LocalTime()

Declaration
public DateTime LocalTime()
Returns
Type Description
DateTime

LocalTime(DateTime)

Declaration
public DateTime LocalTime(DateTime utcTime)
Parameters
Type Name Description
DateTime utcTime
Returns
Type Description
DateTime

UpdateDisplayName(string)

Declaration
public void UpdateDisplayName(string format)
Parameters
Type Name Description
string format

Implements

IPropertyAccess
IUserInfo

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS