Interface IUserInfo
The UserInfo class provides Business Layer model for Users.
Namespace: DotNetNuke.Abstractions.Users
Assembly: DotNetNuke.Abstractions.dll
Syntax
public interface IUserInfo
Properties
| Improve this Doc View SourceAffiliateID
Gets or sets the AffiliateId for this user.
Declaration
int AffiliateID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DisplayName
Gets or sets the Display Name.
Declaration
string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Gets or sets the Email Address.
Declaration
string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FirstName
Gets or sets the First Name.
Declaration
string FirstName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HasAgreedToTerms
Gets or sets a value indicating whether the user has agreed to the terms and conditions.
Declaration
bool HasAgreedToTerms { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasAgreedToTermsOn
Gets or sets when the user last agreed to the terms and conditions.
Declaration
DateTime HasAgreedToTermsOn { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
IsAdmin
Gets a value indicating whether the user is in the portal's administrators role.
Declaration
bool IsAdmin { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDeleted
Gets or sets a value indicating whether the User is deleted.
Declaration
bool IsDeleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSuperUser
Gets or sets a value indicating whether the User is a SuperUser.
Declaration
bool IsSuperUser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastIPAddress
Gets or sets the Last IP address used by user.
Declaration
string LastIPAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LastName
Gets or sets the Last Name.
Declaration
string LastName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PasswordResetExpiration
Gets or sets the datetime that the PasswordResetToken is valid.
Declaration
DateTime PasswordResetExpiration { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
PasswordResetToken
Gets or sets the token created for resetting passwords.
Declaration
Guid PasswordResetToken { get; set; }
Property Value
Type | Description |
---|---|
Guid |
PortalID
Gets or sets the PortalId.
Declaration
int PortalID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RequestsRemoval
Gets or sets a value indicating whether the user has requested they be removed from the site.
Declaration
bool RequestsRemoval { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Roles
Gets or sets the roles.
Declaration
string[] Roles { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
UserID
Gets or sets the User Id.
Declaration
int UserID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Username
Gets or sets the User Name.
Declaration
string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
VanityUrl
Gets or sets the vanity url.
Declaration
string VanityUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceIsInRole(String)
IsInRole determines whether the user is in the role passed.
Declaration
bool IsInRole(string role)
Parameters
Type | Name | Description |
---|---|---|
System.String | role | The role to check. |
Returns
Type | Description |
---|---|
System.Boolean | A Boolean indicating success or failure. |
LocalTime()
Gets current time in User's timezone.
Declaration
DateTime LocalTime()
Returns
Type | Description |
---|---|
DateTime | The local time for the user. |
LocalTime(DateTime)
Convert utc time in User's timezone.
Declaration
DateTime LocalTime(DateTime utcTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | utcTime | Utc time to convert. |
Returns
Type | Description |
---|---|
DateTime | The local time for the user. |
UpdateDisplayName(String)
UpdateDisplayName updates the displayname to the format provided.
Declaration
void UpdateDisplayName(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format to use. |