Class UserCollection
- Namespace
- Dynamicweb.Security.UserManagement
- Assembly
- Dynamicweb.Security.dll
Represents a collection of users.
public class UserCollection : List<User>, IList<User>, ICollection<User>, IReadOnlyList<User>, IReadOnlyCollection<User>, IEnumerable<User>, IList, ICollection, IEnumerable
- Inheritance
-
UserCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
UserCollection()
Default constructor
public UserCollection()
UserCollection(List<User>)
public UserCollection(List<User> list)
Parameters
Methods
Filter(SearchQuery)
Filters the collection of users by the specified search query.
public UserCollection Filter(SearchQuery query)
Parameters
query
SearchQuery- Search query to use.
Returns
- UserCollection
- Users that matches the specified search query.
FindUserByID(int)
Retrieves a user from collection by its ID.
public User FindUserByID(int userID)
Parameters
userID
int- The ID of the user to search for.
Returns
- User
- Retrieved user or Nothing if the user can not be retrieved.
SortBy(SortFields, bool, Group)
Sorts inner collection of elements
public void SortBy(SortFields sortOrder, bool ascending, Group group)
Parameters
sortOrder
SortFields- Sort order
ascending
bool- Sort direction
group
Group- Sort users within that group