PagedList<T> is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace.
Definition
class PagedList<T> : ICloneable, IPagedList<T> { PagedList(); PagedList(IPagedList<T> items); PagedList(AdditionalInfo additionalInfo); PagedList(Error error); PagedList(Warning warning); PagedList(IEnumerable<T> items); PagedList(IEnumerable<T> items, AdditionalInfo additionalInfo); PagedList(IPagedList<T> items, AdditionalInfo additionalInfo); PagedList(IList<Warning> warnings, IList<Error> errors); PagedList(IPagedList<T> items, IList<Warning> warnings, IList<Error> errors); PagedList(IEnumerable<T> items, IList<Warning> warnings, IList<Error> errors); PagedList(IEnumerable<T> items, int pageSize, int totalCount); PagedList(IEnumerable<T> items, int pageSize, int totalCount, AdditionalInfo additionalInfo); PagedList(IEnumerable<T> items, int pageSize, int pageIndex, int totalCount); PagedList(IEnumerable<T> items, int pageSize, int totalCount, IList<Warning> warnings, IList<Error> errors); PagedList(IEnumerable<T> items, int pageSize, int pageIndex, int totalCount, AdditionalInfo additionalInfo); PagedList(IEnumerable<T> items, int pageSize, int pageIndex, int totalCount, IList<Warning> warnings, IList<Error> errors); int Count { get; } IList<Error> Errors { get; } bool IsReadOnly { get; } T Item[int] { get; set; } int PageIndex { get; set; } int PageSize { get; set; } int TotalCount { get; set; } IList<Warning> Warnings { get; } void Add(T item); T[] AsArray(); void Clear(); Object Clone(); bool Contains(T item); void CopyTo(T[] array, int arrayIndex); void ForEach(Action<T> action); IEnumerator<T> GetEnumerator(); bool HasErrors(); int IndexOf(T item); void Insert(int index, T item); bool Remove(T item); void RemoveAt(int index); void ThrowErrors(); }
Constructors
PagedList();
PagedList(IPagedList<T> items);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IPagedList<T> | Items | Required |
PagedList(AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| additionalInfo | AdditionalInfo | Additional Info | Required |
PagedList(Error error);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| error | Error | Error | Required |
PagedList(Warning warning);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warning | Warning | Warning | Required |
PagedList(IEnumerable<T> items);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required |
PagedList(IEnumerable<T> items, AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| additionalInfo | AdditionalInfo | Additional Info | Required |
PagedList(IPagedList<T> items, AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IPagedList<T> | Items | Required | ||
| additionalInfo | AdditionalInfo | Additional Info | Required |
PagedList(IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
PagedList(IPagedList<T> items, IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IPagedList<T> | Items | Required | ||
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
PagedList(IEnumerable<T> items, IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
PagedList(IEnumerable<T> items, int pageSize, int totalCount);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| pageSize | int | Page Size | Required | ||
| totalCount | int | Total Count | Required |
PagedList(IEnumerable<T> items, int pageSize, int totalCount, AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| pageSize | int | Page Size | Required | ||
| totalCount | int | Total Count | Required | ||
| additionalInfo | AdditionalInfo | Additional Info | Required |
PagedList(IEnumerable<T> items, int pageSize, int pageIndex, int totalCount);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| pageSize | int | Page Size | Required | ||
| pageIndex | int | Page Index | Required | ||
| totalCount | int | Total Count | Required |
PagedList(IEnumerable<T> items, int pageSize, int totalCount, IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| pageSize | int | Page Size | Required | ||
| totalCount | int | Total Count | Required | ||
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
PagedList(IEnumerable<T> items, int pageSize, int pageIndex, int totalCount, AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| pageSize | int | Page Size | Required | ||
| pageIndex | int | Page Index | Required | ||
| totalCount | int | Total Count | Required | ||
| additionalInfo | AdditionalInfo | Additional Info | Required |
PagedList(IEnumerable<T> items, int pageSize, int pageIndex, int totalCount, IList<Warning> warnings, IList<Error> errors);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| items | IEnumerable<T> | Items | Required | ||
| pageSize | int | Page Size | Required | ||
| pageIndex | int | Page Index | Required | ||
| totalCount | int | Total Count | Required | ||
| warnings | IList<Warning> | Warnings | Required | ||
| errors | IList<Error> | Errors | Required |
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Count | int | |||
| Errors | IList<Error> | |||
| IsReadOnly | bool | |||
| Item[int] | T | |||
| PageIndex | int | |||
| PageSize | int | |||
| TotalCount | int | |||
| Warnings | IList<Warning> |
Methods
void Add(T item);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| item | T | Item | Required |
T[] AsArray();
Return Type
T[]
void Clear();
Object Clone();
Return Type
bool Contains(T item);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| item | T | Item | Required |
Return Type
void CopyTo(T[] array, int arrayIndex);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| array | T[] | Array | Required | ||
| arrayIndex | int | Array Index | Required |
void ForEach(Action<T> action);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| action | Action<T> | Action | Required |
IEnumerator<T> GetEnumerator();
Return Type
IEnumerator<T>
bool HasErrors();
Return Type
int IndexOf(T item);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| item | T | Item | Required |
Return Type
void Insert(int index, T item);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| index | int | Index | Required | ||
| item | T | Item | Required |
bool Remove(T item);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| item | T | Item | Required |
Return Type
void RemoveAt(int index);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| index | int | Index | Required |