Class LoginStatusModel
The model representing the status of a logged in member
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public class LoginStatusModel
Constructors
LoginStatusModel()
This will construct a new LoginStatusModel and perform a lookup for hte curently logged in member
Declaration
[Obsolete("Do not use this ctor as it will perform business logic lookups. Use the MembershipHelper.GetCurrentLoginStatus or the static LoginStatusModel.CreateModel() to create an empty model.")]
public LoginStatusModel()
Properties
The email of the member
Declaration
[Required]
public string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsLoggedIn
True, if the member is currently logged in
Declaration
public bool IsLoggedIn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of the member
Declaration
[Required]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
The username of the member
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
CreateModel()
Creates a new empty LoginStatusModel
Declaration
public static LoginStatusModel CreateModel()
Returns
Type | Description |
---|---|
LoginStatusModel |