Class QueryableNotificationUserService
Defines the members for a queryable user notification.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public abstract class QueryableNotificationUserService
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 |