Class QueryableNotificationUserService
Defines the members for a queryable user notification.
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class QueryableNotificationUserService : Object
Constructors
QueryableNotificationUserService()
Declaration
protected QueryableNotificationUserService()
Methods
FindAsync(String, Int32, Int32)
Asynchronously finds users by criterion.
Declaration
public abstract Task<PagedNotificationUserResult> FindAsync(string partOfUser, int pageIndex, int pageSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | partOfUser | Part of username, Email or displayname. |
System.Int32 | pageIndex | The index of the page of results to return. pageIndex is zero-based. |
System.Int32 | pageSize | The size of the page of results to return. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PagedNotificationUserResult> | A PagedNotificationUserResult collection that contains a page of pageSize INotificationUser objects beginning at the page specified by pageIndex and total objects. |
GetAsync(String)
Returns a user by name
Declaration
public abstract Task<INotificationUser> GetAsync(string userName)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The name of the user |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<INotificationUser> | One user or null if not found |