Class UserContext
- Namespace
- Dynamicweb.Security.UserManagement
- Assembly
- Dynamicweb.Core.dll
public sealed class UserContext
- Inheritance
-
UserContext
- Inherited Members
-
Constructors
UserContext(User)
public UserContext(User user)
Parameters
user
User
UserContext(User, User)
public UserContext(User user, User impersonatingUser)
Parameters
user
User
impersonatingUser
User
Properties
Anonymous
public static UserContext Anonymous { get; }
Property Value
- UserContext
Current
public static UserContext Current { get; }
Property Value
- UserContext
ImpersonatingUser
public User ImpersonatingUser { get; }
Property Value
- User
ImpersonatingUserId
public int ImpersonatingUserId { get; }
Property Value
- int
IsLoggedOn
public bool IsLoggedOn { get; }
Property Value
- bool
User
public User User { get; }
Property Value
- User
UserId
public int UserId { get; }
Property Value
- int
Methods
GetImpersonatableUsers()
public IEnumerable<User> GetImpersonatableUsers()
Returns
- IEnumerable<User>