Class UserInfo
Assembly: DotNetNuke.dll
Syntax
public class UserInfo : BaseEntityInfo, IPropertyAccess, IUserInfo
Constructors
UserInfo()
Declaration
Properties
AffiliateID
Declaration
[Browsable(false)]
public int AffiliateID { get; set; }
Property Value
Cacheability
Declaration
[Browsable(false)]
public CacheLevel Cacheability { get; }
Property Value
DisplayName
Declaration
[SortOrder(3)]
[Required(true)]
[MaxLength(128)]
public string DisplayName { get; set; }
Property Value
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
FirstName
Declaration
[SortOrder(1)]
[MaxLength(50)]
public string FirstName { get; set; }
Property Value
HasAgreedToTerms
Declaration
[Browsable(false)]
public bool HasAgreedToTerms { get; set; }
Property Value
HasAgreedToTermsOn
Declaration
[Browsable(false)]
public DateTime HasAgreedToTermsOn { get; set; }
Property Value
IsAdmin
Declaration
public bool IsAdmin { get; }
Property Value
IsDeleted
Declaration
[Browsable(false)]
public bool IsDeleted { get; set; }
Property Value
IsSuperUser
Declaration
[Browsable(false)]
public bool IsSuperUser { get; set; }
Property Value
LastIPAddress
Declaration
[Browsable(false)]
public string LastIPAddress { get; set; }
Property Value
LastName
Declaration
[SortOrder(2)]
[MaxLength(50)]
public string LastName { get; set; }
Property Value
Membership
Declaration
[Browsable(false)]
public UserMembership Membership { get; set; }
Property Value
PasswordResetExpiration
Declaration
[Browsable(false)]
public DateTime PasswordResetExpiration { get; set; }
Property Value
PasswordResetToken
Declaration
[Browsable(false)]
public Guid PasswordResetToken { get; set; }
Property Value
PortalID
Declaration
[Browsable(false)]
public int PortalID { get; set; }
Property Value
Profile
Declaration
[Browsable(false)]
public UserProfile Profile { get; set; }
Property Value
RequestsRemoval
Declaration
[Browsable(false)]
public bool RequestsRemoval { get; set; }
Property Value
Roles
Declaration
[Browsable(false)]
public string[] Roles { get; set; }
Property Value
Social
Declaration
[Browsable(false)]
public UserSocial Social { get; }
Property Value
UserID
Declaration
[Browsable(false)]
public int UserID { get; set; }
Property Value
Username
Declaration
[SortOrder(0)]
[MaxLength(100)]
[IsReadOnly(true)]
[Required(true)]
public string Username { get; set; }
Property Value
VanityUrl
Declaration
public string VanityUrl { get; set; }
Property Value
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
Returns
IsInRole(string)
Declaration
public bool IsInRole(string role)
Parameters
Type |
Name |
Description |
string |
role |
|
Returns
LocalTime()
Declaration
public DateTime LocalTime()
Returns
LocalTime(DateTime)
Declaration
public DateTime LocalTime(DateTime utcTime)
Parameters
Returns
UpdateDisplayName(string)
Declaration
public void UpdateDisplayName(string format)
Parameters
Type |
Name |
Description |
string |
format |
|
Implements
Extension Methods